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
Hey @frank06 thanks for the great work. am having a small issue here trying to use freezed with flutter_data. Here is the log
lib/models/business.freezed.dart:231:7: Error: The non-abstract class '_$BusinessImpl' is missing implementations
for these members:
- _DataModel&Object&DataModelMixin.init
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class _$BusinessImpl implements _Business {
^^^^^^^^^^^^^^
../../.pub-cache/hosted/pub.dev/flutter_data-1.6.0/lib/src/model/data_model.dart:86:5: Context: 'Object with
DataModelMixin.init' is defined here.
T init() {
^^^^
Hi frank06. Trying out the latest release with freezed as well and getting the same compilation error. Is there an example with the mixin/freezed you mentioned?
Activity
frank06 commentedon Feb 17, 2025
Have you sorted out? You can instead try with
DataModelMixinbut you will need to manually initialize your models.alguintu commentedon Feb 18, 2025
Hi frank06. Trying out the latest release with freezed as well and getting the same compilation error. Is there an example with the mixin/freezed you mentioned?