spidevs property

Set<Spidev>? get spidevs

Implementation

static Set<Spidev>? get spidevs {
  _spidevs ??= Directory("/dev/")
      .listSync()
      .map((e) => e.path)
      .where((e) => _regex.hasMatch(basename(e)))
      .map((e) => Spidev.fromPath(e))
      .toSet();

  return _spidevs;
}