copyWith method

TextStyleHtml copyWith (
  1. {double height,
  2. int maxLines,
  3. TextStyleHtml parent,
  4. TextStyle style,
  5. TextAlign textAlign,
  6. TextDirection textDirection,
  7. TextOverflow textOverflow}
)

Creates a copy with the given fields replaced with the new values.

Implementation

TextStyleHtml copyWith({
  double height,
  int maxLines,
  TextStyleHtml parent,
  TextStyle style,
  TextAlign textAlign,
  TextDirection textDirection,
  TextOverflow textOverflow,
}) =>
    TextStyleHtml(
      deps: _deps,
      height: height ?? this.height,
      maxLines: maxLines ?? this.maxLines,
      parent: parent ?? this.parent,
      style: style ?? this.style,
      textAlign: textAlign ?? this.textAlign,
      textDirection: textDirection ?? this.textDirection,
      textOverflow: textOverflow ?? this.textOverflow,
    );