1
votes

Future.delayed no longer available, is this removed by accident or planned?

2
I see it in the latest dev docs: api.dartlang.org/apidocs/channels/dev/dartdoc-viewer/… Your question might be better for [email protected] - Seth Ladd
Future.delayed should still be there, so if you can't see it, there must be a problem somewhere. Try filing an issue on the dart bug tracker that states what you are doing (example code which is failing is great) and what is happening (how it crashes). - lrn

2 Answers

1
votes

From the bug report, it seems most likely that you are calling Future.delayed as if it was a static function. It's a constructor, so it needs a new in front of the call: new Future.delayed(duration, computation).