timeout property
If onPressed hasn't completed within this, it's treated as an error (a TimeoutException is indistinguishable from any other thrown error here — both land in AsyncButtonStatus.error).
Implementation
final Duration? timeout;
If onPressed hasn't completed within this, it's treated as an error (a TimeoutException is indistinguishable from any other thrown error here — both land in AsyncButtonStatus.error).
final Duration? timeout;