getGroupById method

Future<Group?> getGroupById(
  1. String groupId
)

Looks up a single group by ID. Returns null if not discovered yet.

Implementation

Future<Group?> getGroupById(String groupId) {
  return (select(groups)..where((t) => t.groupId.equals(groupId)))
      .getSingleOrNull();
}