sendCommand method
Sends a command to DataWedge.
command is the DataWedge API command string.
value is the command parameter.
commandTag optionally identifies this command in result events.
requestResult when true, a result event will be emitted.
Implementation
@override
Future<void> sendCommand({
required String command,
dynamic value,
String? commandTag,
bool requestResult = true,
}) {
return methodChannel.invokeMethod<void>(
'sendCommand',
<String, dynamic>{
'command': command,
'value': value,
'commandTag': commandTag,
'requestResult': requestResult,
},
);
}