forStamp static method

NpuStack? forStamp(
  1. String vendor
)

The vendor of a bundle stamped vendor (any case), or null when this package has no dispatch for it.

Implementation

static NpuStack? forStamp(String vendor) {
  final lower = vendor.toLowerCase();
  for (final candidate in values) {
    if (candidate.stampVendor == lower) return candidate;
  }
  return null;
}