buildCommand method

  1. @override
String buildCommand()
override

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

Implementation

@override
String buildCommand() {
  var command = 'sync:';
  if (isStream) {
    command += 'stream:';
  }
  command += '$commitId';
  if (regex != null && regex!.isNotEmpty) {
    command += ':$regex';
  }
  command += '\n';
  return command;
}