getMember method

Member? getMember(
  1. String userId
)

Returns Member with given userId. It will return null if userId is not exist in members.

Implementation

Member? getMember(String userId) {
  return members.firstWhereOrNull((element) => element.userId == userId);
}