time<T> method

Future<T> time<T>(
  1. String debugLabel
)

Implementation

Future<T> time<T>(String debugLabel) {
  final Stopwatch stopwatch = Stopwatch()..start();
  return then((value) {
    stopwatch.stop();
    return value;
  });
}