copyWith method

ValueDef copyWith({
  1. ClassType? type,
  2. ClassType? listType,
  3. dynamic childrenDef,
})

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;
}