init method

  1. @override
Future<void> init()
override

Implementation

@override
Future<void> init() async {
  _channel.setMethodCallHandler((call) async {
    if ("orientationCallback" == call.method && orientationCallback != null) {
      orientationCallback!(int.parse(call.arguments));
    }
    await _channel.invokeMethod('init');
  });
}