buildCommand method
Build the @ command to be sent to remote secondary for execution.
Implementation
@override
String buildCommand() {
var monitorCommand = 'monitor';
if (lastNotificationTime != null) {
monitorCommand += ':${lastNotificationTime.toString()}';
}
if (regex != null) {
monitorCommand += ' $regex';
}
monitorCommand += '\n';
return monitorCommand;
}