copyWith method
Creates a copy of this definition with optional overrides.
Implementation
ValueDef copyWith({
ClassType? type,
ClassType? listType,
dynamic childrenDef,
}) {
return ValueDef._(
rootClassName: rootClassName,
type: type ?? this.type,
listType: listType,
key: key,
rootClassNameWithPrefixSuffix: rootClassNameWithPrefixSuffix,
childrenDef: childrenDef ?? this.childrenDef,
)..classNamePrefixSuffixBuilder = classNamePrefixSuffixBuilder;
}