logger property

void Function(String message)? logger
getter/setter pair

Sink for the package's diagnostic output.

Null (the default) means silent — the package will not write to the console of an app that did not ask for it. Opt in with:

ApiConfig().logger = debugPrint;

Implementation

void Function(String message)? logger;