unsetAutoRestart static method

Future<void> unsetAutoRestart()

Disables the auto restart setting. See setAutoRestart for details.

This API is for platform developers only. The app must be signed with a platform-level certificate to use this API.

Implementation

static Future<void> unsetAutoRestart() async {
  final int ret = appControlUnsetAutoRestart();
  if (ret != 0) {
    final String message = getErrorMessage(ret).toDartString();
    throw PlatformException(code: ret.toString(), message: message);
  }
}