Timeout<T> extension

An extension on Future that adds a convenience method to apply a timeout.

on

Methods

withTimeout([Duration duration = const Duration(seconds: 7)]) Future<T>

Available on Future<T>, provided by the Timeout extension

Returns the original future but applies a timeout.