copyWith method

NormalizedNode copyWith({
  1. String? role,
  2. String? identifier,
  3. String? subtreeText,
  4. String? text,
  5. String? normalizedText,
  6. List<String>? normalizedTokens,
  7. bool? selected,
  8. String? checked,
  9. VisualSignature? visual,
})

Implementation

NormalizedNode copyWith({
  String? role,
  String? identifier,
  String? subtreeText,
  String? text,
  String? normalizedText,
  List<String>? normalizedTokens,
  bool? selected,
  String? checked,
  VisualSignature? visual,
}) =>
    NormalizedNode(
      rawId: rawId,
      role: role ?? this.role,
      text: text ?? this.text,
      normalizedText: normalizedText ?? this.normalizedText,
      normalizedTokens: normalizedTokens ?? this.normalizedTokens,
      bounds: bounds,
      scrollable: scrollable,
      visible: visible,
      visibleFraction: visibleFraction,
      layer: layer,
      overlayId: overlayId,
      hasAction: hasAction,
      identifier: identifier ?? this.identifier,
      actions: actions,
      parentIndex: parentIndex,
      siblingIndex: siblingIndex,
      subtreeText: subtreeText ?? this.subtreeText,
      selected: selected ?? this.selected,
      value: value,
      checked: checked ?? this.checked,
      editable: editable,
      secure: secure,
      disabled: disabled,
      placeholder: placeholder,
      range: range,
      visual: visual ?? this.visual,
    );