OLD | NEW |
1 | 1 |
2 class CanvasPixelArrayJs extends DOMTypeJs implements CanvasPixelArray native "*
CanvasPixelArray" { | 2 class _CanvasPixelArrayJs extends _DOMTypeJs implements CanvasPixelArray native
"*CanvasPixelArray" { |
3 | 3 |
4 int get length() native "return this.length;"; | 4 int get length() native "return this.length;"; |
5 | 5 |
6 int operator[](int index) native "return this[index];"; | 6 int operator[](int index) native "return this[index];"; |
7 | 7 |
8 void operator[]=(int index, int value) native "this[index] = value"; | 8 void operator[]=(int index, int value) native "this[index] = value"; |
9 // -- start List<int> mixins. | 9 // -- start List<int> mixins. |
10 // int is the element type. | 10 // int is the element type. |
11 | 11 |
12 // From Iterable<int>: | 12 // From Iterable<int>: |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); | 67 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis
t."); |
68 } | 68 } |
69 void insertRange(int start, int length, [int initialValue]) { | 69 void insertRange(int start, int length, [int initialValue]) { |
70 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); | 70 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis
t."); |
71 } | 71 } |
72 List<int> getRange(int start, int length) => | 72 List<int> getRange(int start, int length) => |
73 _Lists.getRange(this, start, length, <int>[]); | 73 _Lists.getRange(this, start, length, <int>[]); |
74 | 74 |
75 // -- end List<int> mixins. | 75 // -- end List<int> mixins. |
76 } | 76 } |
OLD | NEW |