// -- start List<$E> mixins. | |
// $E is the element type. | |
$if DEFINE_LENGTH_AS_NUM_ITEMS | |
// SVG Collections expose numberOfItems rather than length. | |
int get length => numberOfItems; | |
$endif | |
$if DEFINE_LENGTH_SETTER | |
void set length(int value) { | |
throw new UnsupportedError("Cannot resize immutable List."); | |
} | |
$endif | |
// -- end List<$E> mixins. |