Check out example codes for "extend class flutter". It will help you in understanding the concepts better.

Code Example 1

class Class1 {
  String text;
  
  Class1({this.text});
}

class Class2 extends Class1 {
  List<FormControls> form;
  
  Class2({text, this.form}) : super(text: text);
}

Learn ReactJs, React Native from akashmittal.com