showSuccessToast method
- String messageKeyOrText
Shows a short success toast anchored to the top of the screen.
messageKeyOrText is a localisation key or a raw string to display.
Implementation
void showSuccessToast(String messageKeyOrText) {
_show(messageKeyOrText.tr(), atTop: true, duration: _successDuration, isError: false);
}