getAppInfo method

  1. @override
Future<PassageAppInfo?> getAppInfo()
override

Implementation

@override
Future<PassageAppInfo?> getAppInfo() async {
  try {
    final jsonString = await methodChannel.invokeMethod<String>('getAppInfo');
    return PassageAppInfo.fromJson(jsonString!);
  } catch (e) {
    throw PassageError.fromObject(object: e);
  }
}