onCatchAsyncError method
Catch it if the initAsync() throws an error The FutureBuilder will fail, but you can examine the error
Implementation
Future<bool> onCatchAsyncError(Object error) async =>
await rootState?.catchAsyncError(error) ?? false;