copyWith method

Mechanism copyWith({
  1. String? type,
  2. String? description,
  3. String? helpLink,
  4. bool? handled,
  5. Map<String, dynamic>? meta,
  6. Map<String, dynamic>? data,
  7. bool? synthetic,
  8. bool? isExceptionGroup,
  9. String? source,
  10. int? exceptionId,
  11. int? parentId,
})

Implementation

Mechanism copyWith({
  String? type,
  String? description,
  String? helpLink,
  bool? handled,
  Map<String, dynamic>? meta,
  Map<String, dynamic>? data,
  bool? synthetic,
  bool? isExceptionGroup,
  String? source,
  int? exceptionId,
  int? parentId,
}) =>
    Mechanism(
      type: type ?? this.type,
      description: description ?? this.description,
      helpLink: helpLink ?? this.helpLink,
      handled: handled ?? this.handled,
      meta: meta ?? this.meta,
      data: data ?? this.data,
      synthetic: synthetic ?? this.synthetic,
      isExceptionGroup: isExceptionGroup ?? this.isExceptionGroup,
      source: source ?? this.source,
      exceptionId: exceptionId ?? this.exceptionId,
      parentId: parentId ?? this.parentId,
      unknown: unknown,
    );