center method

Widget center([
  1. double? breakpoint
])

Centers the widget within its parent.

Implementation

Widget center([double? breakpoint]) => _apply(
      breakpoint,
      (w) => Center(
        child: w,
      ),
    );