Code example of the Gamepad API for Google Dart, I've configured this code example for Playstation 3 controllers for cross platform compatibility.  You will need to have a driver installer for the code to detect the gamepad.