position function

Widget position(
  1. Widget widget,
  2. double? left,
  3. double? right,
  4. double? top,
  5. double? bottom,
)

Implementation

Widget position(
    Widget widget, double? left, double? right, double? top, double? bottom) {
  return Positioned(
    left: left,
    right: right,
    top: top,
    bottom: bottom,
    child: widget,
  );
}