track method Null safety
- @Deprecated('Chain.track is not necessary in Dart 1.7+.')
- dynamic futureOrStream
Deprecated('Chain.track is not necessary in Dart 1.7+.')">@Deprecated('Chain.track is not necessary in Dart 1.7+.')
Returns futureOrStream
unmodified.
Prior to Dart 1.7, this was necessary to ensure that stack traces for exceptions reported with Completer.completeError and StreamController.addError were tracked correctly.
Implementation
@Deprecated('Chain.track is not necessary in Dart 1.7+.')
static dynamic track(futureOrStream) => futureOrStream;