center method

Widget center({
  1. double? widthFactor,
  2. double? heightFactor,
})

Wraps this widget with a Center widget.

Implementation

Widget center({double? widthFactor, double? heightFactor}) => Center(
      widthFactor: widthFactor,
      heightFactor: heightFactor,
      child: this,
    );