positioned method

Widget positioned({
  1. Key? key,
  2. double? left,
  3. double? top,
  4. double? right,
  5. double? bottom,
})

Positions this widget absolutely within a Stack.

Parameters:

  • key (Key?, optional): Widget key.
  • left (double?, optional): Left offset.
  • top (double?, optional): Top offset.
  • right (double?, optional): Right offset.
  • bottom (double?, optional): Bottom offset.

Returns: Widget — positioned widget.

Implementation

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