When we log something which is not 'stringable' (which has no toString method), a NoSuchMethod is thrown into pretty_logger.dart:236.
A fix can be to limit message parameter to 'Object' and not 'dynamic' to be sure, the method exists ? maybe ? Or to simply add a try/catch to log what you can ?
I know, it's strange to log a message which has no 'toString' method, but it can occur when you want to log something dynamic coming from a library and you don't know the exact type (in my case, it's sometimes a closure...).
When we log something which is not 'stringable' (which has no toString method), a NoSuchMethod is thrown into pretty_logger.dart:236.
A fix can be to limit message parameter to 'Object' and not 'dynamic' to be sure, the method exists ? maybe ? Or to simply add a try/catch to log what you can ?
I know, it's strange to log a message which has no 'toString' method, but it can occur when you want to log something dynamic coming from a library and you don't know the exact type (in my case, it's sometimes a closure...).