SignalEvent class
An event that can ocurr on a line when you are listening on it.
Contains the edge that triggered the event, and the time when this event ocurred. (which is given by the kernel)
- Annotations
-
- @immutable
Constructors
- SignalEvent(SignalEdge edge, int timestampNanos, Duration timestamp, DateTime time)
-
const
Properties
- edge → SignalEdge
-
The edge that was detected on the GpioLine.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- time → DateTime
-
The time this edge ocurred as a best effort guess. Not provided
by the kernel and thus not that accurate.
final
- timestamp → Duration
-
Basically timestampNanos as a Duration, only micro-second accurate
instead of nano-second but easier to use.
final
- timestampNanos → int
-
The precise time at which this edge ocurred determined by the kernel
using the system monotonic clock. This is not a realtime timestamp and
only useful for relative measuring, e.g. measuring the delta between two
signal events. The system realtime clock on the other hand may fluctuate so
it's not 100% accurate.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited