call method

Future call(
  1. {required String method,
  2. required Map arguments}
)
inherited

Implementation

Future<dynamic> call({
  required String method,
  required Map arguments,
}) async {
  final Map result = await _Bridge().channel.invokeMethod(
        method,
        arguments,
      );
  if (isFailure(result)) {
    throw errorFrom(result);
  }
  return result['success'];
}