requestIgnoreBatteryOptimizations static method
Ask the user to allow an app to ignore battery optimizations (that is, put them on the whitelist of apps)
Implementation
static Future<bool?> requestIgnoreBatteryOptimizations() async =>
await _channel.invokeMethod<bool?>('requestIgnoreBatteryOptimizations');