GamepadController.parse constructor

GamepadController.parse(
  1. Map map,
  2. GamepadsPlatformInterface plugin
)

Implementation

factory GamepadController.parse(
  Map<dynamic, dynamic> map,
  GamepadsPlatformInterface plugin,
) {
  final id = map['id'] as String;
  final name = map['name'] as String;
  return GamepadController(id: id, name: name, plugin: plugin);
}