orientation property

Orientation? orientation
final

The optional orientation parameter sets the Orientation to use when displaying the dialog.

By default, the orientation is derived from the MediaQueryData.size of the ambient MediaQuery. If the aspect of the size is tall, then Orientation.portrait is used, if the size is wide, then Orientation.landscape is used.

Use this parameter to override the default and force the dialog to appear in either portrait or landscape mode regardless of the aspect of the MediaQueryData.size.

Implementation

final Orientation? orientation;