-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Flutter v3.24.5 #103
base: main
Are you sure you want to change the base?
Conversation
Why we need to close this PR?--
Sent from Twake Mail
Vào ngày thg 1 9, 2025 3:48 CH, từ Dat Dang ***@***.***>
Closed #103.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because your review was requested.Message ID: ***@***.***>
|
Because it wasn't needed |
Actually it is needed. |
'total': const UnsignedIntNullableConverter().toJson(instance.total), | ||
'limit': const UnsignedIntNullableConverter().toJson(instance.limit), | ||
'total': _$JsonConverterToJson<int, UnsignedInt>( | ||
instance.total, const UnsignedIntConverter().toJson), | ||
'limit': _$JsonConverterToJson<int, UnsignedInt>( | ||
instance.limit, const UnsignedIntConverter().toJson), | ||
}; | ||
|
||
Value? _$JsonConverterFromJson<Json, Value>( | ||
Object? json, | ||
Value? Function(Json json) fromJson, | ||
) => | ||
json == null ? null : fromJson(json as Json); | ||
|
||
Json? _$JsonConverterToJson<Json, Value>( | ||
Value? value, | ||
Json? Function(Value value) toJson, | ||
) => | ||
value == null ? null : toJson(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to write an additional function to check for nullability, even though there is a separate converter for nullable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code in *.g.dart is automatically generated by build_runner
'total': const UnsignedIntNullableConverter().toJson(instance.total), | ||
'limit': const UnsignedIntNullableConverter().toJson(instance.limit), | ||
'total': _$JsonConverterToJson<int, UnsignedInt>( | ||
instance.total, const UnsignedIntConverter().toJson), | ||
'limit': _$JsonConverterToJson<int, UnsignedInt>( | ||
instance.limit, const UnsignedIntConverter().toJson), | ||
}; | ||
|
||
Value? _$JsonConverterFromJson<Json, Value>( | ||
Object? json, | ||
Value? Function(Json json) fromJson, | ||
) => | ||
json == null ? null : fromJson(json as Json); | ||
|
||
Json? _$JsonConverterToJson<Json, Value>( | ||
Value? value, | ||
Json? Function(Value value) toJson, | ||
) => | ||
value == null ? null : toJson(value); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have to write an additional function to check for nullability, even though there is a separate converter for nullable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
idem
No description provided.