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 moreWhat is the difference between extends and with in Dart?
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 more