buildCommand method

  1. @override
String buildCommand()
override

Build the @ command to be sent to remote secondary for execution.

Implementation

@override
String buildCommand() {
  var command = 'llookup:';
  if (operation != null) {
    command += '$operation:';
  }
  if (isCached) {
    command += 'cached:';
  }
  if (isPublic) {
    command += 'public:';
  }
  if (sharedWith != null && sharedWith!.isNotEmpty) {
    command += '$sharedWith:';
  }
  command += atKey!;
  return '$command${VerbUtil.formatAtSign(sharedBy)}\n';
}