gamepadButton top-level property

dynamic get gamepadButton

An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. Available only in secure contexts.

MDN Reference

Implementation

_i2.dynamic get gamepadButton => _i4.getProperty(
      _self,
      'GamepadButton',
    );