getUser method

User? getUser(
  1. UserId id
)

Returns an User identified by its id.

Implementation

User? getUser(UserId id) =>
    members.firstWhereOrNull((e) => e.user.id == id)?.user;