positioned method

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

Wraps widget with Positioned (for Stack)

Implementation

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