turnScreenOff method

  1. @override
Future<bool> turnScreenOff()
override

A method to turn the screen's brightness of the device to lowest setting possible.

Returns false if the device's screen is dimmed.

Implementation

@override
Future<bool> turnScreenOff() {
  return methodChannel
      .invokeMethod('turn_screen_off')
      .then<bool>((value) => value);
}