showSuccessFlashbar method
Shows a success flashbar/toast with a customizable info message.
It uses the following theme values for styling:
- dialogBackgroundColor
- textTheme.bodyText2
- iconTheme.size
Implementation
Future<void> showSuccessFlashbar({
required String message,
Duration duration = const Duration(seconds: 3),
}) {
return _showFlashbar(
message,
duration: duration,
icon: Icons.check_rounded,
iconColor: Colors.green.shade400,
);
}