Point publish_to at the repository root. On a private repository, run dart pub token add. Install with flutter pub get.