Mechanism constructor

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

Implementation

Mechanism({
  required this.type,
  this.description,
  this.helpLink,
  this.handled,
  this.synthetic,
  Map<String, dynamic>? meta,
  Map<String, dynamic>? data,
  this.isExceptionGroup,
  this.source,
  this.exceptionId,
  this.parentId,
})  : _meta = meta != null ? Map.from(meta) : null,
      _data = data != null ? Map.from(data) : null;