You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
throwArgumentError('check function not implemented: $fieldType');
}
The generated API for these have non-nullable element type (e.g. PbList<int>) so null checks no longer do anything (since null safety).
The text was updated successfully, but these errors were encountered:
osa1
changed the title
_checkNotNull field checks are not necessary (since null safety)
_checkNotNull field checks for scalars are not necessary (since null safety)
May 6, 2025
Moving this TODO from #959.
I think "check" functions in
PbList
s can be completely eliminated for the scalars where we only check for nulls:protobuf.dart/protobuf/lib/src/protobuf/field_error.dart
Lines 75 to 107 in d00f905
The generated API for these have non-nullable element type (e.g.
PbList<int>
) so null checks no longer do anything (since null safety).The text was updated successfully, but these errors were encountered: