toast method
- @Deprecated("Use context.showMessage() or context.showMessageDelayed() instead which has more options and customizations available")
dynamic
toast(
- String message, {
- 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);
}