newAtKey method

AtKey newAtKey(
  1. int ttr,
  2. String key,
  3. String? sharedWith
)

Implementation

AtKey newAtKey(int ttr, String key, String? sharedWith) {
  var atKey = AtKey()
    ..metadata = Metadata()
    ..metadata!.ttr = ttr
    // ..metadata.ttl = MixedConstants.maxTTL
    ..metadata!.ccd = true
    ..key = key
    ..sharedWith = sharedWith
    ..sharedBy = AtEventNotificationListener().currentAtSign;
  return atKey;
}