buildCommand method
Build the @ command to be sent to remote secondary for execution.
Implementation
@override
String buildCommand() {
var command = 'notify:';
if (operation != null) {
command += '${getOperationName(operation)}:';
}
if (ttl != null) {
command += 'ttl:$ttl:';
}
if (ttb != null) {
command += 'ttb:$ttb:';
}
if (ttr != null) {
ccd ??= false;
command += 'ttr:$ttr:ccd:$ccd:';
}
if (sharedWithList != null && sharedWithList!.isNotEmpty) {
var sharedWith = sharedWithList!.join(',');
command += '${VerbUtil.formatAtSign(sharedWith)}:';
}
if (isPublic) {
command += 'public:';
}
command += atKey!;
if (sharedBy != null) {
command += '${VerbUtil.formatAtSign(sharedBy)}';
}
if (value != null) {
command += ':$value';
}
return '$command\n';
}