showInfo static method

Future<void> showInfo({
  1. required String title,
  2. String? message,
})

Shows a simple informational alert with an OK button.

Implementation

static Future<void> showInfo({
  required String title,
  String? message,
}) async {
  final context = NavigationService.navigatorKey.currentContext;
  if (context == null) {
    throw StateError('No navigator context available. Make sure NavigationService.navigatorKey is set in your MaterialApp.');
  }

  await BaseAlert.showInfo(
    context: context,
    title: title,
    message: message,
  );
}