CanSocket.forPlatform constructor
Chooses the right implementation for the platform. Uses a stub on non-Linux platforms.
Implementation
factory CanSocket.forPlatform() => Platform.isLinux ? CanFFI() : CanStub();
Chooses the right implementation for the platform. Uses a stub on non-Linux platforms.
factory CanSocket.forPlatform() => Platform.isLinux ? CanFFI() : CanStub();