centered method

Widget centered()

Centers the widget inside a container

Implementation

Widget centered() {
  return Center(
    child: this,
  );
}