Keep filename if it's null

This commit is contained in:
Ming Ming 2021-11-11 22:18:52 +08:00
parent d1841556c2
commit b9655c66c2

View file

@ -40,6 +40,7 @@ class LogCapturer {
static LogCapturer? _inst;
}
String logFilename(String? filename) => shouldLogFileName ? "$filename" : "***";
String logFilename(String? filename) =>
shouldLogFileName || filename == null ? "$filename" : "***";
const bool shouldLogFileName = kDebugMode;