top method

Widget top()

Aligns this widget to the top.

This is equivalent to wrapping this widget with an Align widget with Alignment.topCenter.

Implementation

Widget top() => Align(alignment: Alignment.topCenter, child: this);