toCenter method
------------------------------------------------------------------------ Center
Implementation
Widget toCenter({double widthFactor, double heightFactor, Key key}) {
return Center(
heightFactor: heightFactor,
key: key,
widthFactor: widthFactor,
child: this,
);
}