item method Null safety

String item(
  1. int index
)

Returns a CSS property name by its index, or the empty string if the index is out-of-bounds. var propertyName = style.item(index);

var style = document.getElementById('div1').style; var propertyName = style.item(1); // or style1 - returns the second style listed

Implementation

external String item(int index);