copyWith method

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

Creates a copy of this DiagnosticsSerializationDelegate with the provided values.

Implementation

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