setAnimate method

  1. @override
Future<void> setAnimate(
  1. bool isAnimate
)
override

Set will animate when application screen brightness changed.

This method is useful for user change whether this plugin should animate when application screen brightness changed.

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

Implementation

@override
Future<void> setAnimate(bool isAnimate) async {
  await pluginMethodChannel
      .invokeMethod(methodNameSetAnimate, {"isAnimate": isAnimate});
}