CanBusStatus class final

A bus state plus optional error counters and a reason.

const CanBusStatus(CanBusState.disconnected, reason: 'device detached');
Annotations

Constructors

CanBusStatus(CanBusState state, {CanErrorCounters? errorCounters, String? reason})
Creates a status.
const

Properties

errorCounters → CanErrorCounters?
Error counters, or null when the adapter cannot report them.
final
hashCode → int
The hash code for this object.
no setteroverride
isOnline → bool
True for CanBusState.active, CanBusState.errorWarning and CanBusState.errorPassive: frames can still be exchanged.
no setter
reason → String?
Human-readable cause for the change, if known.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → CanBusState
Controller state.
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.
override