GamepadController constructor

GamepadController({
  1. required String id,
  2. required String name,
  3. required GamepadsPlatformInterface plugin,
})

Implementation

GamepadController({
  required this.id,
  required this.name,
  required GamepadsPlatformInterface plugin,
}) {
  _subscription = plugin.eventsByGamepad(id).listen(state.update);
}