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
... i am going to run the default sample project. ( flutter create ). It will result in the following error:
lib/model.freezed.dart:74:57:Error:The constructor function type '_$_Parent<dynamic> Function(Map<String, dynamic>)' isn't a subtype of '_Parent<T> Function(Map<String, dynamic>)'. - '_$_Parent' is from 'package:freezed_test/model.dart' ('lib/model.dart'). - 'Map' is from 'dart:core'. - '_Parent' is from 'package:freezed_test/model.dart' ('lib/model.dart'). factory _Parent.fromJson(Map<String, dynamic> json) = _$_Parent.fromJson;
I can fix the error by opening model.freezed and change
/// model.freezed.dart:74factory_Parent.fromJson(Map<String, dynamic> json) =_$_Parent.fromJson;
to
factory_Parent.fromJson(Map<String, dynamic> json) =_$_Parent<T>.fromJson;
The text was updated successfully, but these errors were encountered:
after creating these model classes on version 0.2.4...
... i am going to run the default sample project. ( flutter create ). It will result in the following error:
I can fix the error by opening model.freezed and change
The text was updated successfully, but these errors were encountered: