openLibserialport function

DynamicLibrary openLibserialport({
  1. String? path,
})

Opens libserialport from path (or the default soname when null). Throws if the library is not present on the system.

Implementation

DynamicLibrary openLibserialport({String? path}) {
  final p = path ?? defaultLibserialportFilename();
  return DynamicLibrary.open(p);
}