center method

Widget center()

Centers this widget within its parent.

Wraps this widget in a Center.

widget.center()

Implementation

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