get method

Future<AtFollowsValue> get(
  1. AtKey atkey
)

Returns AtFollowsValue for atKey.

Implementation

Future<AtFollowsValue> get(AtKey atkey) async {
  var response = await _atClientServiceInstance.atClient!.get(atkey).timeout(
      Duration(seconds: AppConstants.responseTimeLimit),
      onTimeout: () => _onTimeOut());
  AtFollowsValue val = AtFollowsValue();
  val
    ..metadata = response.metadata
    ..value = response.value
    ..atKey = atkey;
  return val;
}