onFutureSuccessValidator property
Validator function that determines whether the popup should be dismissed after onFutureSuccess completes
Returns a Future<bool?>
- if the future returns null it allows to dismiss proceeding to the next step of calling the onFutureSuccess method, and keep the popup open,
- if the future returns true, then the onFutureSuccess method will be called and the popup will be dismissed
- if the future returns false, then the onFutureSuccess method will NOT be called and the Button will indicate failure
Implementation
final Future<bool?> Function()? onFutureSuccessValidator;