allBranches property

List<Branch> get allBranches

Get all Branches in a Repository

Implementation

List<Branch> get allBranches => Directory(join(repositoryPath, branchFolderName))
    .listSync(recursive: false, followLinks: false)
    .where((f) => f.statSync().type == FileSystemEntityType.directory)
    .map((f) => Branch(basename(f.path), this))
    .toList();