copyWith() method for Inheritance class on dart – Flutter
I want to implement copyWith() method for my class. Since its inhirited class, i got error: The member being overridden. my basemodel class BaseData { int id; String? createdAt, updatedAt; BaseData({this.id = 0, this.createdAt, this.updatedAt}); BaseData copyWith({ int? id, String?…