Flutter: inherit from abstract stateless widget
问题 I have a class that has to take a custom widget. This one can have two different implementations, so I would like to have an abstract class as interface and create two other classes those extend the abstract one. So, I have: abstract class ICustomWidget extends StatelessWidget{} class A extends ICustomWidget{ @override Widget build(BuildContext context) => //Implementation } class B extends ICustomWidget { @override Widget build(BuildContext context) => //Implementation } I want to ask if