turnScreenOn method

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

A method to turn the screen's brightness of the device to the user's defaults.

Returns true if the device's screen is bright.

Implementation

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