fromValue static method
Returns the appropriate GamepadType for the given C++ value.
Implementation
static GamepadType fromValue(int value) =>
values.firstWhereOrNull((type) => type.index == value) ?? unknown;
Returns the appropriate GamepadType for the given C++ value.
static GamepadType fromValue(int value) =>
values.firstWhereOrNull((type) => type.index == value) ?? unknown;