CanStub class

An implementation of the CAN interface that does nothing for platforms that don't support it.

Inheritance

Constructors

CanStub()
Creates a mock CAN interface that does nothing and receives no messages.

Properties

hashCode int
The hash code for this object.
no setterinherited
incomingMessages Stream<CanMessage>
A stream of incoming CAN messages. Use Stream.listen to handle them.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Closes the connection to the device.
override
init() Future<bool>
Initializes the connection to the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onDisconnect() Future<void>
A callback to run when the program has disconnected from the Dashboard.
inherited
reset() Future<void>
Resets the CAN bus.
override
sendMessage({required int id, required List<int> data}) → void
Sends a CAN message with the given ID and data.
override
toString() String
A string representation of this object.
inherited

Operators

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