positioned method

Positioned positioned({
  1. double? top,
  2. double? bottom,
  3. double? left,
  4. double? right,
  5. double? height,
  6. double? width,
})

Creates a widget that controls where a child of a Stack is positioned.

Only two out of the three horizontal values (left, right, width), and only two out of the three vertical values (top, bottom, height), can be set. In each case, at least one of the three must be null.

Implementation

Positioned positioned({
  double? top,
  double? bottom,
  double? left,
  double? right,
  double? height,
  double? width,
}) =>
    Positioned(
      child: this,
      top: top,
      bottom: bottom,
      left: left,
      right: right,
      height: height,
      width: width,
    );