PressState class

Where a press is and whether one is under way, for a pressable's glow.

Constructors

PressState.new({required bool pressed, required Offset position})
Creates a press state.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
position → Offset
Where the pointer is, as a share of the box (0 to 1 each way).
final
pressed → bool
Whether a press is under way.
final
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
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

idle → const PressState
No press, with the pointer at the middle.