CenterModifier constructor

const CenterModifier({
  1. Key? key,
  2. Key? modifiedKey,
  3. double? widthFactor,
  4. double? heightFactor,
  5. Widget? child,
})

Creates a widget that centers its child.

Implementation

const CenterModifier({
  super.key,
  Key? modifiedKey,
  super.widthFactor,
  super.heightFactor,
  super.child,
}) : super(
        modifierKey: modifiedKey,
        alignment: Alignment.center,
      );