center property

Center get center

Centers the current widget.

Returns a Center widget with the current widget as its child.

Implementation

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