+ flutter dart generic type Dart: Is it possible to pass a generic type to a class as a variable? I have a class with a generic type and I want to pass that type as a variable. Is there a way to achieve this? abstract class MainType {} class TypeA extends MainType {} class TypeB extends MainT... wono | tweet Add comment Do you want to delete? YesNo