right method
Sets the distance from the right edge of the parent container.
This positions the widget at a specific offset from the right edge using a PositionUnit. Can be used with absolute or relative positioning.
The optional key parameter assigns a key to the wrapped widget.
Example:
Text('Right aligned').right(20.position),
Text('Quarter from right').right(0.25.relativePosition),
Implementation
Widget right(PositionUnit right, [Key? key]) {
return _WidgetWrapper._wrapOrCopyWith(
child: this,
key: key != null ? () => key : null,
right: () => right,
);
}