toast method

  1. @Deprecated("Use context.showMessage() or context.showMessageDelayed() instead which has more options and customizations available")
dynamic toast(
  1. String message, {
  2. String title = "Message",
})

Implementation

@Deprecated("Use context.showMessage() or context.showMessageDelayed() instead which has more options and customizations available")
toast(
  String message, {
  String title = "Message",
}) {
  if (!mounted) return;
  if (message.length > 1000) message = "${message.substring(0, 1000)}...";
  context.showSnackBar(message);
}