getAll method

Future<List<Command>> getAll()

Returns all the registered extension commands for this extension and their shortcut (if active). Before Chrome 110, this command did not return _execute_action. returns Called to return the registered commands.

Implementation

Future<List<Command>> getAll() async {
  var $res = await promiseToFuture<JSArray>($js.chrome.commands.getAll());
  return $res.toDart
      .cast<$js.Command>()
      .map((e) => Command.fromJS(e))
      .toList();
}