error static method
Log error message (only in debug mode)
Implementation
static void error(String message, [Object? error, String? tag]) {
if (kDebugMode) {
final tagPrefix = tag != null ? '[$tag] ' : '';
final errorInfo = error != null ? ' - Error: $error' : '';
debugPrint('${tagPrefix}ERROR: $message$errorInfo');
}
}