copy method

Style copy()

Creates a copy of this style.

Implementation

Style copy() {
  final s = Style();
  s._props = _props;
  s._props2 = _props2;
  s._bold = _bold;
  s._italic = _italic;
  s._underline = _underline;
  s._underlineStyle = _underlineStyle;
  s._strikethrough = _strikethrough;
  s._dim = _dim;
  s._inverse = _inverse;
  s._blink = _blink;
  s._foreground = _foreground;
  s._background = _background;
  s._underlineColor = _underlineColor;
  s._borderForeground = _borderForeground;
  s._borderBackground = _borderBackground;
  s._borderTopForeground = _borderTopForeground;
  s._borderTopBackground = _borderTopBackground;
  s._borderRightForeground = _borderRightForeground;
  s._borderRightBackground = _borderRightBackground;
  s._borderBottomForeground = _borderBottomForeground;
  s._borderBottomBackground = _borderBottomBackground;
  s._borderLeftForeground = _borderLeftForeground;
  s._borderLeftBackground = _borderLeftBackground;
  s._borderForegroundBlend = List<Color>.from(_borderForegroundBlend);
  s._borderForegroundBlendOffset = _borderForegroundBlendOffset;
  s._borderProps = _borderProps;
  s._width = _width;
  s._height = _height;
  s._maxWidth = _maxWidth;
  s._maxHeight = _maxHeight;
  s._padding = _padding;
  s._margin = _margin;
  s._align = _align;
  s._alignVertical = _alignVertical;
  s._border = _border;
  s._borderSides = _borderSides;
  s._inline = _inline;
  s._wrapAnsi = _wrapAnsi;
  s._transform = _transform;
  s._whitespaceChar = _whitespaceChar;
  s._whitespaceForeground = _whitespaceForeground;
  s._string = _string;
  s._tabWidth = _tabWidth;
  s._underlineSpaces = _underlineSpaces;
  s._strikethroughSpaces = _strikethroughSpaces;
  s._colorWhitespace = _colorWhitespace;
  s._hyperlinkUrl = _hyperlinkUrl;
  s._hyperlinkParams = _hyperlinkParams;
  s._marginBackground = _marginBackground;
  s._colorProfile = _colorProfile;
  s._hasDarkBackground = _hasDarkBackground;
  return s;
}