hasBranch method

Future<bool> hasBranch(
  1. String branchName
)

Implementation

Future<bool> hasBranch(String branchName) async {
  final branches = await allBranches;
  return branches.any((branch) =>
      branch.branchName.toLowerCase() == branchName.toLowerCase());
}