CNSwitchController class
Controller for a CNSwitch that allows imperative updates from Dart to the underlying native UISwitch/NSSwitch instance.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setEnabled(
bool enabled) → Future< void> - Enables or disables user interaction on the native switch.
-
setValue(
bool value, {bool animated = false}) → Future< void> -
Sets the switch
value
. Whenanimated
is true the change is animated on the native control. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited