putText method

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

put's the text data into the keystore

Implementation

@override
Future<AtResponse> putText(AtKey atKey, String value,
    {PutRequestOptions? putRequestOptions}) async {
  try {
    // Setting metadata.isBinary to false for putText
    atKey.metadata.isBinary = false;
    return await _putInternal(atKey, value, putRequestOptions);
  } on AtException catch (e) {
    throw AtExceptionManager.createException(e);
  }
}