If you want to create a class A that supports class B’s API without inheriting B’s implementation, class A should implement the B interface. In Dart, every class defines an implicit interface as others say. So then… the key is: Classes should use the implements keyword to be able to use an interface.7 Mar 2021
Read more