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