sendCommand method

Future<void> sendCommand({
  1. required String command,
  2. dynamic value,
  3. String? commandTag,
  4. bool requestResult = true,
})

Sends a generic command to DataWedge.

command is the DataWedge API command string. value is the command parameter (can be String, List, or Map). commandTag optionally identifies this command in result events. requestResult when true, a result event will be emitted on the events stream.

Implementation

Future<void> sendCommand({
  required String command,
  dynamic value,
  String? commandTag,
  bool requestResult = true,
}) {
  return _platform.sendCommand(
    command: command,
    value: value,
    commandTag: commandTag,
    requestResult: requestResult,
  );
}