bottom method

Widget bottom(
  1. PositionUnit bottom, [
  2. Key? key
])

Sets the distance from the bottom edge of the parent container.

This positions the widget at a specific offset from the bottom 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('Footer').bottom(10.position),
Text('Above bottom').bottom(0.1.relativePosition),

Implementation

Widget bottom(PositionUnit bottom, [Key? key]) {
  return _WidgetWrapper._wrapOrCopyWith(
    child: this,
    key: key != null ? () => key : null,
    bottom: () => bottom,
  );
}