addCustomRemoteCommand static method

dynamic addCustomRemoteCommand(
  1. String id,
  2. Function callback
)

Adds a RemoteCommand to the RemoteCommands Dispatcher

Implementation

static addCustomRemoteCommand(String id, Function callback) async {
  return await addRemoteCommand(RemoteCommand(id,
    callback: callback,
    path: null,
    url: null
  ));
}