onData property
executes when either future is done with no error or returns data.
In case of null,
hasData = (_) {
return CommonAlertDialog('Done');
}
Implementation
final Widget Function(T? res)? onData;
executes when either future is done with no error or returns data.
In case of null,
hasData = (_) {
return CommonAlertDialog('Done');
}
final Widget Function(T? res)? onData;