error static method
Implementation
static Future<void> error(String message, {Object? error, StackTrace? stackTrace, String? category, String? tag, Map<String, dynamic>? metadata, bool shouldNotify = false}) async {
if (!instance._initialized) {
throw StateError('VooLogger must be initialized before use');
}
await instance._repository.error(message, error: error, stackTrace: stackTrace, category: category, tag: tag, metadata: metadata);
if (shouldNotify) {
VooToast.showError(message: message, title: category ?? 'Error');
}
}