error static method
Log an error message (red).
Implementation
static void error(String message, {String? tag, Object? error, StackTrace? stackTrace}) {
if (!enableLogging) return;
final content = '❌ ${tag != null ? "[$tag] " : ""}$message';
_log(content, name: 'ERROR', error: error, stackTrace: stackTrace);
}