Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'dart:async';
- import 'dart:collection';
- void main(){
- final completer = new Completer<dynamic>();
- final future = completer.future;
- future.then((dynamic result){
- print('before error');
- LinkedHashSet set = (result as LinkedHashSet).cast<String>();
- print('after error');
- });
- new Timer(const Duration(milliseconds: 400), (){
- completer.complete(new LinkedHashSet<String>());
- });
- }
Add Comment
Please, Sign In to add comment