center method

Center center()

Centers the widget in its parent.

Implementation

Center center() {
  return Center(child: this);
}