getLastCrashInfo method

  1. @override
Future<String?> getLastCrashInfo()
override

Implementation

@override
Future<String?> getLastCrashInfo() async{
  try{
    if (Platform.isIOS) {
      print('getLastCrashInfo is not available in iOS');
      return null;
    }
  return methodChannel.invokeMethod<String?>("getLastCrashInfo");
  }on PlatformException catch(e,s){
    print(s);
    return null;
  }
}