Index: client/html/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart |
=================================================================== |
--- client/html/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart (revision 942) |
+++ client/html/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart (working copy) |
@@ -37,12 +37,13 @@ |
throw new UnsupportedOperationException("This object is immutable."); |
} |
- int indexOf(int element, int startIndex) { |
- return _Lists.indexOf(this, element, startIndex, this.length); |
+ int indexOf(int element, [int start = 0]) { |
+ return _Lists.indexOf(this, element, start, this.length); |
} |
- int lastIndexOf(int element, int startIndex) { |
- return _Lists.lastIndexOf(this, element, startIndex); |
+ int lastIndexOf(int element, [int start = null]) { |
+ if (start == null) start = length - 1; |
+ return _Lists.lastIndexOf(this, element, start); |
} |
int clear() { |