isReady<T extends Object> method
bool
isReady<T extends Object>({
- void onReady(
- BuildContext context
- void onError(
- BuildContext context,
- Object? error
- Duration? timeout,
- String? instanceName,
returns true
if the registered async or dependent object defined by T
and
instanceName
is ready
and call onReady
onError
handlers when the ready state is reached
you can force a timeout Exceptions if isReady hasn't
return true
within timeout
It will trigger a rebuild if this state changes
Implementation
bool isReady<T extends Object>(
{void Function(BuildContext context)? onReady,
void Function(BuildContext context, Object? error)? onError,
Duration? timeout,
String? instanceName}) =>
_state.value.isReady<T>(
instanceName: instanceName,
onReady: onReady,
onError: onError,
timeout: timeout);