TtyDevice constructor Null safety

TtyDevice(
  1. {PrinterDeviceType? type,
  2. int? boundrate,
  3. String? filePath}
)

Implementation

factory TtyDevice({
  PrinterDeviceType? type,
  $core.int? boundrate,
  $core.String? filePath,
}) {
  final _result = create();
  if (type != null) {
    _result.type = type;
  }
  if (boundrate != null) {
    _result.boundrate = boundrate;
  }
  if (filePath != null) {
    _result.filePath = filePath;
  }
  return _result;
}