In order to install the plugin, just add the latest version from pub.dev in your pubspec.yaml.
pubspec.yaml
dependencies: location: ^5.0.0
You can then follow the different guide depending on which platform you wish to support.