dlgSnackbar method
- required Widget content,
- SnackBarAction? action,
- Clip clipBehavior = Clip.hardEdge,
- int? seconds,
Shows a snackbar at the bottom of the content area to display information.
Implementation
void dlgSnackbar({
required Widget content,
SnackBarAction? action,
Clip clipBehavior = Clip.hardEdge,
int? seconds,
}) {
ScaffoldMessenger.of(cNavigatorKey.currentContext!).showSnackBar(
SnackBar(
action: action,
clipBehavior: clipBehavior,
content: content,
duration: seconds != null
? Duration(seconds: seconds)
: const Duration(seconds: 4),
),
);
}