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
The plugin does not handle DateTime parser correctly
classPerson{
String? name;
DateTime? birthday;
// Constructos and other relevant code.factoryPerson.fromMap(Map<String, dynamic> map){
returnPerson(
name: map['name'] asString?,
birthday:DateTime.tryParse(map['birthday']), // Use this instead of map['birthday'] as DateTime
);
}
}
The text was updated successfully, but these errors were encountered:
The plugin does not handle DateTime parser correctly
The text was updated successfully, but these errors were encountered: