putText abstract method

Future<AtResponse> putText(
  1. AtKey atKey,
  2. String value, {
  3. PutRequestOptions? putRequestOptions,
})

Used to store the textual data into the keystore. Updates value of AtKey.key is if it is already present. Otherwise creates a new key. Set AtKey.sharedWith if the key has to be shared with another atSign. By default namespace that is used to create the AtClient instance will be appended to the key. phone@alice will be saved as phone.persona@alice where 'persona' is the namespace.

isDedicated is currently ignored and will be removed in next major version

putRequestOptions allows additional options to be provided. See PutRequestOptions

From at_client v3.0.55 lowercase will be enforced on all AtKey types The values(AtValue) will however continue to be case-sensitive

update:phone@alice +1 999 9999
  var key = AtKey.self('phone', namespace: 'wavi').build();
  putText(key,'+1 999 9999');
update:public:phone@alice +1 999 9999
  var key = AtKey.public('location', namespace: 'wavi').build();
  put(key,'+1 999 9999');
update:@bob:phone@alice +1 999 9999
   var key = (AtKey.shared('phone', namespace: 'wavi')
            ..sharedWith('@bob'))
          .build();
  put(key,'+1 999 9999');
update:@alice:phone.persona@alice +1 999 9999
  var key = AtKey()..key='phone'
            ..sharedWith='@alice'
  put(key, '+1 999 9999');
update:@alice:phone@alice +1 999 9999
  var metaData = Metadata()..namespaceAware=false
  var key = AtKey()..key='phone'
           sharedWith='@alice'
  put(key, '+1 999 9999');
update:@bob:phone.persona@alice +1 999 9999
  var key = AtKey()..key='phone'
            sharedWith='@bob'
   put(key, '+1 999 9999');

Implementation

Future<AtResponse> putText(AtKey atKey, String value,
    {PutRequestOptions? putRequestOptions});