copyWith method

TermsData copyWith({
  1. int? position,
  2. String? orderStyle,
  3. List<TermsSpan>? title,
  4. List<TermsSpan>? text,
  5. List<TermsData>? children,
})

Implementation

TermsData copyWith({
  int? position,
  String? orderStyle,
  List<TermsSpan>? title,
  List<TermsSpan>? text,
  List<TermsData>? children,
}) {
  return TermsData(
    position: position ?? this.position,
    title: title ?? this.title,
    orderStyle: orderStyle ?? this.orderStyle,
    children: children ?? this.children,
    text: text ?? this.text,
  );
}