'Flutter, how to use a private GitHub repository as a package in pubspec.yaml file?

Will I have access to the private repository as written below? like for public repo

  flutter_component:
    git:
      url: https://github.com/lordyhas/flutter_component

or I have to do otherwise



Solution 1:[1]

Yes, it works, like for the public repository, I have already tested it.
You can do it,

  flutter_component:
    git:
      url: https://github.com/lordyhas/flutter_component

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 lordyhas