supportedOrientations property

Iterable<DeviceOrientation> get supportedOrientations

Device orientations this screen supports while it is the topmost visible page. The router applies the topmost screen's value via SystemChrome.setPreferredOrientations on each active-screen change, mirroring UIKit's per-UIViewController.supportedInterfaceOrientations. Override to force portrait/landscape on a specific page (e.g. a camera).

Implementation

Iterable<DeviceOrientation> get supportedOrientations =>
    DeviceOrientation.values;