factory property Null safety

ButtonFactory factory

Implementation

ButtonFactory get factory => widget.bFactory;