keyIdsFromType method

Set<String>? keyIdsFromType(
  1. String type
)

Implementation

Set<String>? keyIdsFromType(String type) {
  final data = client.accountData[type];
  if (data == null) {
    return null;
  }
  final contentEncrypted =
      data.content.tryGetMap<String, Object?>('encrypted');
  if (contentEncrypted != null) {
    return contentEncrypted.keys.toSet();
  }
  return null;
}