logFileIsEmpty property
Returns true
if the debug file is empty, false
otherwise.
Implementation
static Future<bool> get logFileIsEmpty async {
final exists = await _debugFile.exists();
final content = exists ? (await _debugFile.readAsString()) : "";
print(
"[LogLogger]: The log file is ${content.isNotEmpty ? 'not ' : ''}empty.",
);
return content.isEmpty;
}