OLD | NEW |
1 | 1 |
2 class _NotificationImpl extends _EventTargetImpl implements Notification { | 2 class _NotificationImpl extends _EventTargetImpl implements Notification { |
3 _NotificationImpl._wrap(ptr) : super._wrap(ptr); | 3 _NotificationImpl._wrap(ptr) : super._wrap(ptr); |
4 | 4 |
| 5 _NotificationEventsImpl get on() { |
| 6 if (_on == null) _on = new _NotificationEventsImpl(this); |
| 7 return _on; |
| 8 } |
| 9 |
5 String get dir() => _wrap(_ptr.dir); | 10 String get dir() => _wrap(_ptr.dir); |
6 | 11 |
7 void set dir(String value) { _ptr.dir = _unwrap(value); } | 12 void set dir(String value) { _ptr.dir = _unwrap(value); } |
8 | 13 |
9 String get replaceId() => _wrap(_ptr.replaceId); | 14 String get replaceId() => _wrap(_ptr.replaceId); |
10 | 15 |
11 void set replaceId(String value) { _ptr.replaceId = _unwrap(value); } | 16 void set replaceId(String value) { _ptr.replaceId = _unwrap(value); } |
12 | 17 |
13 _NotificationEventsImpl get on() { | |
14 if (_on == null) _on = new _NotificationEventsImpl(this); | |
15 return _on; | |
16 } | |
17 | |
18 void cancel() { | 18 void cancel() { |
19 _ptr.cancel(); | 19 _ptr.cancel(); |
20 return; | 20 return; |
21 } | 21 } |
22 | 22 |
23 void show() { | 23 void show() { |
24 _ptr.show(); | 24 _ptr.show(); |
25 return; | 25 return; |
26 } | 26 } |
27 } | 27 } |
28 | 28 |
29 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents
{ | 29 class _NotificationEventsImpl extends _EventsImpl implements NotificationEvents
{ |
30 _NotificationEventsImpl(_ptr) : super(_ptr); | 30 _NotificationEventsImpl(_ptr) : super(_ptr); |
31 | 31 |
32 EventListenerList get click() => _get('click'); | 32 EventListenerList get click() => _get('click'); |
33 | 33 |
34 EventListenerList get close() => _get('close'); | 34 EventListenerList get close() => _get('close'); |
35 | 35 |
36 EventListenerList get display() => _get('display'); | 36 EventListenerList get display() => _get('display'); |
37 | 37 |
38 EventListenerList get error() => _get('error'); | 38 EventListenerList get error() => _get('error'); |
39 | 39 |
40 EventListenerList get show() => _get('show'); | 40 EventListenerList get show() => _get('show'); |
41 } | 41 } |
OLD | NEW |