isValidCall method

bool isValidCall(
  1. int function,
  2. Channel sender, [
  3. Channel receiver = kAnyChannel
])

Implementation

bool isValidCall(int function, Channel sender,
    [Channel receiver = kAnyChannel]) {
  final rpcFunction = functions[function];
  if (rpcFunction == null) return false;
  return rpcFunction.shouldRun(sender, receiver);
}