Error constructor

Error({
  1. int? code,
  2. String? message,
  3. Map<String, String>? context,
})

Implementation

factory Error({
  $core.int? code,
  $core.String? message,
  $core.Map<$core.String, $core.String>? context,
}) {
  final _result = create();
  if (code != null) {
    _result.code = code;
  }
  if (message != null) {
    _result.message = message;
  }
  if (context != null) {
    _result.context.addAll(context);
  }
  return _result;
}