track method

  1. @Deprecated("Chain.track is not necessary in Dart 1.7+.")
dynamic track (dynamic futureOrStream)
@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 track(futureOrStream) => futureOrStream;