setValue method
Sets the switch value
. When animated
is true the change is animated
on the native control.
Implementation
Future<void> setValue(bool value, {bool animated = false}) async {
final channel = _channel;
if (channel == null) return;
await channel.invokeMethod('setValue', {
'value': value,
'animated': animated,
});
}