logPrint property
Where log lines go. Defaults to print.
Use this to route logs somewhere other than the console — debugPrint
to avoid Android's log truncation, or your own crash reporter / file sink:
const ApiLogOptions(logPrint: debugPrint) // note: takes String?, wrap it
ApiLogOptions(logPrint: (o) => debugPrint(o.toString()))
Implementation
final void Function(Object object)? logPrint;