positioned method
Creates a Positioned widget with the current widget as its child.
Only two out of the three horizontal values (left
, right
, width
), and
only two out of the three vertical values (top
, bottom
, height
), can be set.
In each case, at least one of the three must be null.
Implementation
Positioned positioned({
double? top,
double? bottom,
double? left,
double? right,
double? height,
double? width,
}) =>
Positioned(
top: top,
bottom: bottom,
left: left,
right: right,
height: height,
width: width,
child: this,
);