Text constructor

Text(String data)

Implementation

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