parse static method

DeviceHidFailure parse(
  1. Object? kind
)

The failure the helper named kind; input when it names none glint knows.

Implementation

static DeviceHidFailure parse(Object? kind) => values.where((f) => f.name == kind).firstOrNull ?? input;