AlignModifier constructor

const AlignModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. AlignmentGeometry alignment = Alignment.center,
  5. double? widthFactor,
  6. double? heightFactor,
})

Creates an alignment widget.

The alignment defaults to Alignment.center.

Implementation

const AlignModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.alignment = Alignment.center,
  this.widthFactor,
  this.heightFactor,
})  : assert(widthFactor == null || widthFactor >= 0.0),
      assert(heightFactor == null || heightFactor >= 0.0);