How to create Inherited classes in flutter with freezed? #1171
Unanswered
Zambeel-Ltd
asked this question in
Q&A
Replies: 1 comment 3 replies
-
|
try: @freezed
abstract class Vehicle with _$Vehicle {
const Vehicle._();
const factory Vehicle({required String brand}) = _Vehicle;
}
@freezed
abstract class Car extends Vehicle with _$Car {
const Car._(): super._();
const factory Car({required String brand, required int doors}) = _Car;
}There's no constructor in your |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
I am creating two classes in flutter with freezed this is my code
But I am getting error on
_$Carsayingam I doing something wrong. is there any other way to implement Inheritance with freezed?
Beta Was this translation helpful? Give feedback.
All reactions