requestDisableBatteryOptimizationWithResult method
Attempts to request disabling battery optimization and completes after the user returns from the system dialog, reporting whether optimizations are now disabled (ignored) for the app.
Implementation
Future<bool> requestDisableBatteryOptimizationWithResult() {
throw UnimplementedError(
'requestDisableBatteryOptimizationWithResult() has not been implemented.',
);
}