onAsyncError method
App-level error handling if async operation at start up fails
Implementation
void onAsyncError(AsyncSnapshot<bool> snapshot) {
final dynamic exception = snapshot.error;
final details = FlutterErrorDetails(
exception: exception,
stack: exception is Error ? exception.stackTrace : null,
library: 'app_statefulwidget',
context: ErrorDescription('while getting ready with FutureBuilder Async'),
);
onError(details);
}