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
Since the copyWith function ignores null input parameters, it is not possible to clear out nullable properties:
final person = person.copyWith(imageUrl:null);
/// This has no effect because of generated copyWith function:
...
Person({
imageUrl: imageUrl ??this.imageUrl,
...
Propose another generated function called clear:
final person = person.clear(imageUrl:true); // Only properties with @nullable show as parameters
The text was updated successfully, but these errors were encountered:
Since the
copyWith
function ignores null input parameters, it is not possible to clear out nullable properties:Propose another generated function called
clear
:The text was updated successfully, but these errors were encountered: