track static method Null safety

  1. @Deprecated('Chain.track is not necessary in Dart 1.7+.')
dynamic track(
  1. Object? futureOrStream
)

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(Object? futureOrStream) => futureOrStream;