setGray method
Implementation
@override
Future<bool?> setGray(int level) async {
// Invoke the native method 'setGray' with the specified 'level' parameter and return the result.
final start =
await methodChannel.invokeMethod<bool>('setGray', {"level": level});
return start;
}