MethodCall constructor

MethodCall({
  1. required String method,
  2. required Object args,
})

Implementation

MethodCall({required this.method, required Object args}) {
  if (!(args is List || args is Map<String, dynamic>)) {
    throw ArgsMethodCallException();
  }
  // ignore: prefer_initializing_formals
  this.args = args;
}