TextNode constructor

TextNode([
  1. String text = ''
])

Implementation

TextNode([String text = ''])
    : assert(!text.contains('\n')),
      super._(text);