copyWith method Null safety

  1. @override
DiagnosticsSerializationDelegate copyWith(
  1. {int? subtreeDepth,
  2. bool? includeProperties}
)
override

Creates a copy of this DiagnosticsSerializationDelegate with the provided values.

Implementation

@override
DiagnosticsSerializationDelegate copyWith({int? subtreeDepth, bool? includeProperties}) {
  return InspectorSerializationDelegate(
    groupName: groupName,
    summaryTree: summaryTree,
    maxDescendentsTruncatableNode: maxDescendentsTruncatableNode,
    expandPropertyValues: expandPropertyValues,
    subtreeDepth: subtreeDepth ?? this.subtreeDepth,
    includeProperties: includeProperties ?? this.includeProperties,
    service: service,
    addAdditionalPropertiesCallback: addAdditionalPropertiesCallback,
  );
}