snack static method

EntryController snack(
  1. String message, {
  2. Widget? action,
  3. int duration = 3,
  4. Alignment? align,
  5. double width = 0.7,
})

Implementation

static EntryController snack(
  String message, {
  Widget? action,
  int duration = 3,
  Alignment? align,
  double width = 0.7,
}) {
  if (_instance == null) {
    throw StateError('Pls call MyDialog.instance before use snack!');
  }
  return _instance!.snack(
    message,
    action: action,
    duration: duration,
    align: align,
    width: width,
  );
}