positioned method
Positions a widget inside a Stack with optional width and height constraints.
top, bottom, left, right - The positioning properties for the widget.
width, height - Optional width and height constraints for the widget.
Implementation
Positioned 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,
);
}