RPCError.withDetails constructor

RPCError.withDetails(
  1. String? callingMethod,
  2. int code,
  3. String message, {
  4. Object? details,
})

Implementation

RPCError.withDetails(this.callingMethod, this.code, this.message,
    {Object? details})
    : data = details == null ? null : <String, dynamic>{} {
  if (details != null) {
    data!['details'] = details;
  }
}