setPosition abstract method
Update the Switch to the provided position.
await mySwitch.setPosition(2);
For more information, see Switch component.
Implementation
Future<void> setPosition(int position, {Map<String, dynamic>? extra});
Update the Switch to the provided position.
await mySwitch.setPosition(2);
For more information, see Switch component.
Future<void> setPosition(int position, {Map<String, dynamic>? extra});