factory property
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;
The default kind of port to create. Use this when mocking with different ports.
static SerialPortInterface Function(String) factory = DelegateSerialPort.new;