copyWith method

FlintTextSpan copyWith({
  1. String? text,
  2. TextStyle? style,
  3. String? onTap,
})

Creates a copy of this FlintTextSpan with optional property overrides.

Implementation

FlintTextSpan copyWith({String? text, TextStyle? style, String? onTap}) {
  return FlintTextSpan(
    text ?? this.text,
    style: style ?? this.style,
    onTap: onTap ?? this.onTap,
  );
}