mpvLog top-level property
_Logger
mpvLog
getter/setter pair
Logger for the just_audio_mpv plugin. This is a global variable that can be set to a function that will be called whenever the plugin logs a message.
Implementation
// ignore: library_private_types_in_public_api
_Logger mpvLog = (message, {error, stackTrace, level = JAMPV_LogLevel.info}) {
if (kDebugMode) {
print(message);
if (error != null) {
print(error);
}
if (stackTrace != null) {
print(stackTrace);
}
}
};