isSystemApp static method

Future<bool?> isSystemApp(
  1. String packageName
)

Checks if an app with the specified package name is a system app.

packageName is the package name of the app to check.

Returns a boolean indicating whether the app is a system app.

Implementation

static Future<bool?> isSystemApp(String packageName) async {
  return _channel.invokeMethod(
    "isSystemApp",
    {"package_name": packageName},
  );
}