setValue method
Sets the current slider value. When animated is true, animates to it.
Implementation
Future<void> setValue(double value, {bool animated = false}) async {
final channel = _channel;
if (channel == null) return;
await channel.invokeMethod('setValue', {
'value': value,
'animated': animated,
});
}