showErrorToast method
- String? messageKeyOrText
Shows a long error toast anchored to the bottom of the screen.
When messageKeyOrText is null or empty, the 'errors.unexpected'
localisation key is used as the default message.
Implementation
void showErrorToast(String? messageKeyOrText) {
final String rawMessage = (messageKeyOrText == null || messageKeyOrText.isEmpty) ? _defaultErrorKey : messageKeyOrText;
_show(rawMessage.tr(), atTop: false, duration: _errorDuration, isError: true);
}