isAmbient method
Tells the application if we are currently in ambient mode
Implementation
Future<bool> isAmbient() async {
try {
return (await _channel.invokeMethod<bool>('isAmbient'))!;
} on PlatformException catch (e, st) {
debugPrint('Error calling isAmbient: $e\n$st');
return false;
}
}