isAutoReset property

  1. @override
Future<bool> get isAutoReset
override

Returns boolean to identify will auto reset to system brightness when application lifecycle changed.

This parameter is useful for user to determinate current state of auto reset.

(iOS only) implemented in iOS only because only iOS native side does not having reset method.

Implementation

@override
Future<bool> get isAutoReset async {
  return await pluginMethodChannel
          .invokeMethod<bool>(methodNameIsAutoReset) ??
      true;
}