PositionedModifier.fill constructor

const PositionedModifier.fill({
  1. Key? key,
  2. Widget? child,
  3. double? left = 0.0,
  4. double? top = 0.0,
  5. double? right = 0.0,
  6. double? bottom = 0.0,
})

Creates a Positioned object with left, top, right, and bottom set to 0.0 unless a value for them is passed.

Implementation

const PositionedModifier.fill({
  super.key,
  super.child,
  this.left = 0.0,
  this.top = 0.0,
  this.right = 0.0,
  this.bottom = 0.0,
})  : width = null,
      height = null;