llookup method

  1. @override
Future<String> llookup(
  1. String key, {
  2. String? sharedBy,
  3. String? sharedWith,
  4. bool isPublic = false,
})
override

Implementation

@override
Future<String> llookup(String key,
    {String? sharedBy, String? sharedWith, bool isPublic = false}) async {
  var builder;
  if (sharedWith != null) {
    builder = LLookupVerbBuilder()
      ..isPublic = isPublic
      ..sharedWith = sharedWith
      ..atKey = key
      ..sharedBy = _currentAtSign;
  } else if (isPublic && sharedBy == null && sharedWith == null) {
    builder = LLookupVerbBuilder()
      ..atKey = 'public:' + key
      ..sharedBy = _currentAtSign;
  } else {
    builder = LLookupVerbBuilder()
      ..atKey = key
      ..sharedBy = _currentAtSign;
  }
  var llookupResult = await executeVerb(builder);
  llookupResult = VerbUtil.getFormattedValue(llookupResult);
  return llookupResult;
}