sendCommand method

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

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,
    },
  );
}