setErrorCallback static method
Register a callback function to be called when errors occured in any function in this package.
- {onError} is a function that takes a String which is the error message.
Implementation
static void setErrorCallback(void Function(String error) onError) {
GetIt.I<BotnoiClient>().setErrorCallback(onError);
}