OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 /// A simple delegating wrapper around [StreamChannel]. |
| 6 /// |
| 7 /// Subclasses can override individual methods, or use this to expose only |
| 8 /// [StreamChannel] methods. |
| 9 class StreamChannelView<T> extends StreamChannelMixin<T> { |
| 10 /// The inner channel to which methods are forwarded. |
| 11 final StreamChannel<T> _inner; |
| 12 |
| 13 Stream<T> get stream => _inner.stream; |
| 14 StreamSink<T> get sink => _inner.sink; |
| 15 |
| 16 StreamChannelView(this._inner); |
| 17 } |
OLD | NEW |