From 541a83f2ccfb0de26df8a87e0242bdc9a416a281 Mon Sep 17 00:00:00 2001 From: Binghamton University Rover Team Date: Tue, 26 Sep 2023 16:25:34 -0400 Subject: [PATCH] Removed default CanStub --- lib/src/can/socket_interface.dart | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/src/can/socket_interface.dart b/lib/src/can/socket_interface.dart index 407fd56..e2da13b 100644 --- a/lib/src/can/socket_interface.dart +++ b/lib/src/can/socket_interface.dart @@ -26,21 +26,21 @@ class CanException implements Exception { /// - Use [sendMessage] to send a message to all devices on the bus /// - Listen to [incomingMessages] to receive messages from other devices on the bus abstract class CanSocket { - /// Chooses the right implementation for the platform. Uses a stub on non-Linux platforms. - factory CanSocket() => Platform.isLinux ? CanFFI() : CanStub(); + /// Chooses the right implementation for the platform. Uses a stub on non-Linux platforms. + factory CanSocket() => Platform.isLinux ? CanFFI() : CanStub(); /// Starts listening for CAN messages. - void init() { } + void init() { } /// Disposes of native resources allocated to this object, and stops listening for CAN messages. - void dispose() { } + void dispose() { } /// Sends a CAN message with the given ID and data. - void sendMessage({required int id, required List data}) { } + void sendMessage({required int id, required List data}) { } - /// A stream of incoming CAN messages. Use [Stream.listen] to handle them. - /// - /// This stream returns [CanMessage] objects, which are wrappers around native structs, which - /// needs to be freed after use. Be sure to call [CanMessage.dispose] when you're done using it. - Stream get incomingMessages; + /// A stream of incoming CAN messages. Use [Stream.listen] to handle them. + /// + /// This stream returns [CanMessage] objects, which are wrappers around native structs, which + /// needs to be freed after use. Be sure to call [CanMessage.dispose] when you're done using it. + Stream get incomingMessages; }