positioned method
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,
);
}