validateChannelHandle static method

bool validateChannelHandle(
  1. String name
)

Returns true if the given ChannelHandle is a valid ChannelHandle.

Implementation

static bool validateChannelHandle(String name) {
  if (name.isNullOrWhiteSpace) {
    return false;
  }

  return _handleExp.hasMatch(name);
}