PinOptions class
Settings for pulling the pins. Pass it once as
FabricEffect(pins: PinOptions(...)) to set the default feel and to let
the widget release the pins by itself on a gesture (trigger). Override
per call with controller.releasePins(options: ...).
Constructors
- PinOptions({FabricTrigger trigger = FabricTrigger.doubleTap, PinReleaseMode mode = PinReleaseMode.wave, Duration duration = const Duration(milliseconds: 750), Duration? autoResetAfter, VoidCallback? onComplete})
-
const
Properties
- autoResetAfter → Duration?
-
If set, the widget comes back by itself this long after the cloth
settled. Null = stays down until
controller.reset().final - duration → Duration
-
How spread out the wave is - shorter = pins let go closer together =
a snappier drop. Ignored for PinReleaseMode.allAtOnce.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- mode → PinReleaseMode
-
PinReleaseMode.wave or PinReleaseMode.allAtOnce.
final
- onComplete → VoidCallback?
-
Called once the cloth has settled after the release.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trigger → FabricTrigger
-
Gesture on the widget that releases the pins.
FabricTrigger.none = only via the controller or a PinsButton.
final
Methods
-
copyWith(
{FabricTrigger? trigger, PinReleaseMode? mode, Duration? duration, Duration? autoResetAfter, VoidCallback? onComplete}) → PinOptions -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited