setActive method
If set to true
will de-activate screen if proximity sensor detects something
For Android
, if used and proximity wake lock is not available, this will throw
Implementation
@override
Future<void> setActive(bool value) async {
await methodChannel.invokeMethod('setActive', value);
}