You use extend if you want to create a more specific version of a class . For example the class car could extend the class vehicle. In Dart a class can only extend one class.
Read moreWhat does Extends do in flutter?
You can inherit from or extend a class using the extends keyword. This allows you share properties and methods between classes that are similar, but not exactly the same . Also, it allows different subtypes to share a common runtime type so that static analysis doesn’t fail.
Read more