CupertinoSwitchRenderer class
Cupertino renderer for Switch components.
Implements RSwitchRenderer with iOS styling.
CRITICAL INVARIANT (v1 policy):
- Renderer NEVER calls user callbacks directly.
- Activation logic lives in the component (HeadlessPressableRegion).
Supports drag interpolation via RSwitchState.dragT:
- When dragging, thumb position and colors interpolate smoothly
- When not dragging, uses animated transitions based on
RSwitchSpec.value
Constructors
- CupertinoSwitchRenderer()
-
const
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
-
render(
RSwitchRenderRequest request) → Widget - Render a switch with the given request.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited