onError method
Supply an 'error handler' routine to fire when an error occurs. Allows the user to define their own with each Controller.
Implementation
// details.exception, details.stack
@protected
void onError(FlutterErrorDetails details) => currentErrorFunc!(details);