centered method

Widget centered()

Wraps the widget in a Center widget

Implementation

Widget centered() => Center(child: this);