overlay method
Creates a Stack where this overlay will be shown on top of this widget.
Implementation
Widget overlay(
Widget overlay, [
Alignment alignment = Alignment.center,
]) {
return Stack(
alignment: alignment,
children: <Widget>[
this,
overlay,
],
);
}