center method

Center center({
  1. Key? key,
  2. double? widthFactor,
  3. double? heightFactor,
})

Wrap a widget in Center.

Implementation

Center center({Key? key, double? widthFactor, double? heightFactor}) {
  return Center(
    key: key,
    widthFactor: widthFactor,
    heightFactor: heightFactor,
    child: this,
  );
}