post_enrollment_app/lib/features/chatbot/application/chatbot_reset_helper.dart
2026-04-08 09:11:24 +05:30

17 lines
472 B
Dart

import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'chatbot_controller.dart';
class ChatbotResetHelper {
static void resetChatbot(BuildContext context) {
try {
final container = ProviderScope.containerOf(context, listen: false);
container.read(chatbotControllerProvider.notifier).resetAll();
} catch (_) {
// If no ProviderScope is found (or provider is unavailable), ignore.
}
}
}