installApk method Null safety

Future<void> installApk(
  1. String apkPath
)

安装 Apk apkPath Apk file path

Implementation

static Future<void> installApk(String apkPath) async {
  //判断 Android 平台
  if (Platform.isAndroid) {
    _channel.invokeMethod('installApk', {'apkPath': apkPath});
  }
}