CanSocket.forPlatform constructor

CanSocket.forPlatform()

Chooses the right implementation for the platform. Uses a stub on non-Linux platforms.

Implementation

factory CanSocket.forPlatform() => Platform.isLinux ? CanFFI() : CanStub();