getContactAccessMode method

AccessMode? getContactAccessMode(
  1. String? topicName
)

Get access mode of a given contact from cache

Implementation

AccessMode? getContactAccessMode(String? topicName) {
  if (topicName != null && topicName.isNotEmpty) {
    var cont = _contacts[topicName];
    return cont?.acs;
  }
  return null;
}