extends class method flutter code example
Example: extend class flutter
class Class1 {
String text;
Class1({this.text});
}
class Class2 extends Class1 {
List<FormControls> form;
Class2({text, this.form}) : super(text: text);
}
class Class1 {
String text;
Class1({this.text});
}
class Class2 extends Class1 {
List<FormControls> form;
Class2({text, this.form}) : super(text: text);
}