Flic2ButtonClick class
a class to contain all the information about the click of a Flic2 button
Constructors
- Flic2ButtonClick({required bool wasQueued, required int clickAge, required bool lastQueued, required int timestamp, required bool isSingleClick, required bool isDoubleClick, required bool isHold, required Flic2Button button})
-
constructor
const
Properties
-
the button
final
- clickAge → int
-
the age (ms) of this click when in a queue (if it was ages maybe you want to ignore it)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDoubleClick → bool
-
was this a double click
final
- isHold → bool
-
was this a long hold of the button
final
- isSingleClick → bool
-
was this a single click
final
- lastQueued → bool
-
is this click the last in the queue
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timestamp → int
-
the timestamp of this click from the button (not in iOS)
final
- wasQueued → bool
-
was this click stored in the queue, button comes back into range and sends it's cache
final
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