sir, how to inheritance from a parent class with freezed.
with a case like this ??
class InformationDownlineModel extends InformationDownline { final Header? header; final Data? data;
InformationDownlineModel({this.header, this.data}) : super( agentName: data?.agentName, personresponsible: data?.personresponsible, phone: data?.phone, email: data?.email, );
class InformationDownline extends Equatable { final String? agentName; final String? personresponsible; final String? phone; final String? email;
InformationDownline({this.agentName, this.personresponsible, this.phone, this.email});
@override List get props => [agentName, personresponsible, phone, email];
Had the same question, the creator of Freezed touches on it here: github.com/rrousselGit/freezed/dis...
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
sir, how to inheritance from a parent class with freezed.
with a case like this ??
class InformationDownlineModel extends InformationDownline {
final Header? header;
final Data? data;
InformationDownlineModel({this.header, this.data})
: super(
agentName: data?.agentName,
personresponsible: data?.personresponsible,
phone: data?.phone,
email: data?.email,
);
class InformationDownline extends Equatable {
final String? agentName;
final String? personresponsible;
final String? phone;
final String? email;
InformationDownline({this.agentName, this.personresponsible, this.phone, this.email});
@override
List get props => [agentName, personresponsible, phone, email];
Had the same question, the creator of Freezed touches on it here:
github.com/rrousselGit/freezed/dis...