center method
Centers this widget within the available space.
Non-null size factors size the wrapper relative to the child and must be non-negative. Parent constraints can still limit the resulting size.
Implementation
Center center({Key? key, double? widthFactor, double? heightFactor}) =>
Center(
key: key,
widthFactor: widthFactor,
heightFactor: heightFactor,
child: this,
);