getList static method

BrowseService? getList(
  1. String accountId,
  2. String name,
  3. BrowseList list
)

Implementation

static BrowseService? getList(
    String accountId, String name, BrowseList list) {
  BrowseService? bs;

  if (list.service
          .where((l) => l.name == name && l.accountId == accountId)
          .toList()
          .length >
      0) {
    bs = list.service
        .where((l) => l.name == name && l.accountId == accountId)
        .toList()[0];
  }
  return bs;
}