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