showTextAndAction static method

bool showTextAndAction(
  1. String text,
  2. String action,
  3. void onPressed()
)

Implementation

static bool showTextAndAction(
    String text, String action, void Function() onPressed) {
  return show(
    widget: Text(text),
    action: SnackBarAction(label: action, onPressed: onPressed),
  );
}