Dart onClick, timeout, take, where, onDone
Dart Sink Sink class Stream class where method take method listetn method map method timeout method StreamTransformer class Contructors StreamTransformer.fromHandlers import 'dart:html'; void main() { final btn = querySelector('button'); btn.onClick .timeout( new Duration(seconds: 1), // 1초 후 onTimeout: (sink) => sink.addError('You Lost') // sink에 에러 추가 ) .listen( (event) {}, onError: (err) => p..