call method

Future<Map<String, Object?>> call(
  1. String name,
  2. Map<String, Object?> args
)

Runs the repo tool named name with args, returning its JSON result map.

Implementation

Future<Map<String, Object?>> call(
  String name,
  Map<String, Object?> args,
) async {
  try {
    return await _dispatch(name, args);
  } on RepoException catch (e) {
    return _error(e.message);
  }
}