systemChromeMap top-level property

Map<String, void Function(Object orientations)> systemChromeMap
final

Implementation

final systemChromeMap = {
  "setPreferredOrientations": (Object orientations) {
    SystemChrome.setPreferredOrientations(
        (orientations as List).cast<DeviceOrientation>());
  },
  "handleAppLifecycleStateChanged": (Object state) {
    return SystemChrome.handleAppLifecycleStateChanged(
        state as AppLifecycleState);
  }
};