snackbar static method
Show a snackbar notification.
Can be called from anywhere - controllers, services, or pure Dart classes.
Magic.snackbar('Success', 'User created!');
Magic.snackbar('Error', 'Failed', type: 'error');
Implementation
static void snackbar(
String title,
String message, {
String type = 'info',
Duration? duration,
}) {
MagicFeedback.showSnackbar(title, message, type: type, duration: duration);
}