checkPlatformSetup method

  1. @override
Future<PlatformSetupReport> checkPlatformSetup()
override

Implementation

@override
Future<PlatformSetupReport> checkPlatformSetup() async {
  try {
    final map =
        await _methodChannel.invokeMapMethod<dynamic, dynamic>(
      'checkPlatformSetup',
    );
    return map == null
        ? const PlatformSetupReport.allOk()
        : PlatformSetupReport.fromMap(map);
  } on MissingPluginException {
    // Older native side (pre-2.6.3) — assume ok so apps that target
    // both pluginversions don't show spurious setup hints.
    return const PlatformSetupReport.allOk();
  }
}