copy method

DocText copy()

Implementation

DocText copy() {
  return DocText()
    ..isCode = isCode
    ..link = link
    ..color = color
    ..backgroundColor = backgroundColor
    ..bold = bold
    ..italic = italic
    ..underline = underline;
}