fromValue static method

libusb_hotplug_flag fromValue(
  1. int value
)

Implementation

static libusb_hotplug_flag fromValue(int value) => switch (value) {
      1 => LIBUSB_HOTPLUG_ENUMERATE,
      _ =>
        throw ArgumentError("Unknown value for libusb_hotplug_flag: $value"),
    };