Center constructor

const Center({
  1. double? widthFactor,
  2. double? heightFactor,
  3. required Widget child,
})

Creates a widget that centers its child.

Implementation

const Center({super.widthFactor, super.heightFactor, required super.child})
  : super(alignment: Alignment.center);