WidgetFactory typedef Null safety

WidgetFactory = Widget Function()

Implementation

typedef Widget WidgetFactory();