OLD | NEW |
(Empty) | |
| 1 |
| 2 class _BlobImpl extends _DOMTypeBase implements Blob { |
| 3 _BlobImpl._wrap(ptr) : super._wrap(ptr); |
| 4 |
| 5 int get size() => _wrap(_ptr.size); |
| 6 |
| 7 String get type() => _wrap(_ptr.type); |
| 8 |
| 9 Blob webkitSlice([int start = null, int end = null, String contentType = null]
) { |
| 10 if (start === null) { |
| 11 if (end === null) { |
| 12 if (contentType === null) { |
| 13 return _wrap(_ptr.webkitSlice()); |
| 14 } |
| 15 } |
| 16 } else { |
| 17 if (end === null) { |
| 18 if (contentType === null) { |
| 19 return _wrap(_ptr.webkitSlice(_unwrap(start))); |
| 20 } |
| 21 } else { |
| 22 if (contentType === null) { |
| 23 return _wrap(_ptr.webkitSlice(_unwrap(start), _unwrap(end))); |
| 24 } else { |
| 25 return _wrap(_ptr.webkitSlice(_unwrap(start), _unwrap(end), _unwrap(co
ntentType))); |
| 26 } |
| 27 } |
| 28 } |
| 29 throw "Incorrect number or type of arguments"; |
| 30 } |
| 31 } |
OLD | NEW |