Widget.center constructor Null safety

const Widget.center(
  1. {Key? key,
  2. double? widthFactor,
  3. double? heightFactor,
  4. required Widget child}
)

Implementation

const factory Widget.center({
  Key? key,
  double? widthFactor,
  double? heightFactor,
  required Widget child,
}) = Center;