GamepadButtons.from constructor

GamepadButtons.from(
  1. int value
)

Implementation

factory GamepadButtons.from(int value) => GamepadButtons.values
    .firstWhere((e) => e.value == value, orElse: () => GamepadButtons(value));