isOperator method Null safety
- String userId
Returns true
if a given user with userId
is operator
Implementation
bool isOperator(String userId) {
return operators.where((e) => e.userId == userId).isNotEmpty;
}
Returns true
if a given user with userId
is operator
bool isOperator(String userId) {
return operators.where((e) => e.userId == userId).isNotEmpty;
}