OLD | NEW |
(Empty) | |
| 1 |
| 2 class _DataTransferItemListImpl extends _DOMTypeBase implements DataTransferItem
List { |
| 3 _DataTransferItemListImpl._wrap(ptr) : super._wrap(ptr); |
| 4 |
| 5 int get length() => _wrap(_ptr.length); |
| 6 |
| 7 void add(var data_OR_file, [String type = null]) { |
| 8 if (data_OR_file is File) { |
| 9 if (type === null) { |
| 10 _ptr.add(_unwrap(data_OR_file)); |
| 11 return; |
| 12 } |
| 13 } else { |
| 14 if (data_OR_file is String) { |
| 15 _ptr.add(_unwrap(data_OR_file), _unwrap(type)); |
| 16 return; |
| 17 } |
| 18 } |
| 19 throw "Incorrect number or type of arguments"; |
| 20 } |
| 21 |
| 22 void clear() { |
| 23 _ptr.clear(); |
| 24 return; |
| 25 } |
| 26 |
| 27 DataTransferItem item(int index) { |
| 28 return _wrap(_ptr.item(_unwrap(index))); |
| 29 } |
| 30 } |
OLD | NEW |