track method Null safety

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