void handleFailure( String? errorMessage, void Function(String? error)? onError) { onError?.call(errorMessage); }