getAtValue method

Future getAtValue(
  1. AtKey key
)

Implementation

Future<dynamic> getAtValue(AtKey key) async {
  try {
    var atvalue = await atClientInstance!
        .get(key)
        // ignore: return_of_invalid_type_from_catch_error
        .catchError((e) => print('error in in key_stream_service get $e'));

    // ignore: unnecessary_null_comparison
    if (atvalue != null) {
      return atvalue;
    } else {
      return null;
    }
  } catch (e) {
    print('error in key_stream_service getAtValue:$e');
    return null;
  }
}