init method

Future<void> init()

Implementation

Future<void> init() async {
  if (Platform.isIOS) {
    self?.service = ScreenOrientationIosService();
  } else if (Platform.isAndroid) {
    self?.service = ScreenOrientationAndroidService();
  }
}