dlgSnackbar method

void dlgSnackbar({
  1. required Widget content,
  2. SnackBarAction? action,
  3. Clip clipBehavior = Clip.hardEdge,
  4. 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),
    ),
  );
}