positionedFill method

Positioned positionedFill({
  1. Key? key,
  2. double? left = 0,
  3. double? top = 0,
  4. double? right = 0,
  5. double? bottom = 0,
})

Stretches this widget between a Stack's edges.

Offsets default to zero. Null offsets release that edge's constraint. The stack needs a size from its parent or non-positioned children. The same parent-data rules as positioned apply.

Implementation

Positioned positionedFill({
  Key? key,
  double? left = 0,
  double? top = 0,
  double? right = 0,
  double? bottom = 0,
}) =>
    Positioned.fill(
      key: key,
      left: left,
      top: top,
      right: right,
      bottom: bottom,
      child: this,
    );