factory property

SerialPortInterface Function(String) factory
getter/setter pair

The default kind of port to create. Use this when mocking with different ports.

Implementation

static SerialPortInterface Function(String) factory = DelegateSerialPort.new;