MethodChannelFlutterAppLifecycle constructor

MethodChannelFlutterAppLifecycle()

Implementation

MethodChannelFlutterAppLifecycle(){
  methodChannel.setMethodCallHandler((call)async{
    if(call.method=="result"){
      _appStateObserver?.call.call(call.arguments["back"]);
    }
  });
}