onCatchAsyncError method

Future<bool> onCatchAsyncError(
  1. Object error
)

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;