timeout property
Future timeout. If the timeout is provided, the onPressed future
will be cancelled after the timeout duration.
The onError function will be called with a TimeoutException.
Defaults to null (no timeout).
Implementation
final Duration? timeout;