OLD | NEW |
(Empty) | |
| 1 |
| 2 class _IDBKeyRangeImpl extends _DOMTypeBase implements IDBKeyRange { |
| 3 _IDBKeyRangeImpl._wrap(ptr) : super._wrap(ptr); |
| 4 |
| 5 IDBKey get lower() => _wrap(_ptr.lower); |
| 6 |
| 7 bool get lowerOpen() => _wrap(_ptr.lowerOpen); |
| 8 |
| 9 IDBKey get upper() => _wrap(_ptr.upper); |
| 10 |
| 11 bool get upperOpen() => _wrap(_ptr.upperOpen); |
| 12 |
| 13 IDBKeyRange bound(IDBKey lower, IDBKey upper, [bool lowerOpen = null, bool upp
erOpen = null]) { |
| 14 if (lowerOpen === null) { |
| 15 if (upperOpen === null) { |
| 16 return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper))); |
| 17 } |
| 18 } else { |
| 19 if (upperOpen === null) { |
| 20 return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper), _unwrap(lowerOpe
n))); |
| 21 } else { |
| 22 return _wrap(_ptr.bound(_unwrap(lower), _unwrap(upper), _unwrap(lowerOpe
n), _unwrap(upperOpen))); |
| 23 } |
| 24 } |
| 25 throw "Incorrect number or type of arguments"; |
| 26 } |
| 27 |
| 28 IDBKeyRange lowerBound(IDBKey bound, [bool open = null]) { |
| 29 if (open === null) { |
| 30 return _wrap(_ptr.lowerBound(_unwrap(bound))); |
| 31 } else { |
| 32 return _wrap(_ptr.lowerBound(_unwrap(bound), _unwrap(open))); |
| 33 } |
| 34 } |
| 35 |
| 36 IDBKeyRange only(IDBKey value) { |
| 37 return _wrap(_ptr.only(_unwrap(value))); |
| 38 } |
| 39 |
| 40 IDBKeyRange upperBound(IDBKey bound, [bool open = null]) { |
| 41 if (open === null) { |
| 42 return _wrap(_ptr.upperBound(_unwrap(bound))); |
| 43 } else { |
| 44 return _wrap(_ptr.upperBound(_unwrap(bound), _unwrap(open))); |
| 45 } |
| 46 } |
| 47 } |
OLD | NEW |