MagicFeedback class

The Magic Feedback Engine.

Internal helper class that provides context-free UI feedback using MagicRouter.navigatorKey. Uses Wind widgets for styling with Config-driven customization.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

isLoading bool
Check if loading is shown.
no setter

Static Methods

closeDialog() → void
Close the currently open dialog.
closeLoading() → void
Close the loading dialog.
confirm({required String title, required String message, String confirmText = 'Confirm', String cancelText = 'Cancel', bool isDangerous = false}) Future<bool>
Show a confirmation dialog.
error(String title, String message) → void
Show an error snackbar.
info(String title, String message) → void
Show an info snackbar.
showCustomDialog<T>(Widget content, {bool barrierDismissible = true}) Future<T?>
Show a custom dialog.
showLoading({String? message}) → void
Show a loading dialog.
showSnackbar(String title, String message, {String type = 'info', Duration? duration}) → void
Show a snackbar notification.
success(String title, String message) → void
Show a success snackbar.
toast(String message, {Duration? duration}) → void
Show a toast message.
warning(String title, String message) → void
Show a warning snackbar.