positioned method

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

Creates a Positioned widget with the current widget as its child. 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(
      top: top,
      bottom: bottom,
      left: left,
      right: right,
      height: height,
      width: width,
      child: this,
    );