center method

Widget center()

Centers the widget within its parent.

Implementation

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