top method
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);
Aligns this widget to the top.
This is equivalent to wrapping this widget with an Align widget with Alignment.topCenter.
Widget top() => Align(alignment: Alignment.topCenter, child: this);