Text constructor

Text(
  1. String data
)

Implementation

factory Text(String data) => JS(
    'returns:Text;depends:none;effects:none;new:true',
    '#.createTextNode(#)',
    document,
    data);