isOperator method

bool isOperator(
  1. String userId
)

Checks if the given userId is an operator id of this channel.

Implementation

bool isOperator(String userId) {
  sbLog.i(StackTrace.current, 'userId: $userId');
  return operators.where((e) => e.userId == userId).isNotEmpty;
}