showErrorMessage method
Implementation
void showErrorMessage(String message) {
state = state.copyWith(
errorMessage: message,
showError: true,
);
Future.delayed(const Duration(seconds: 5), () {
clearError();
});
}
void showErrorMessage(String message) {
state = state.copyWith(
errorMessage: message,
showError: true,
);
Future.delayed(const Duration(seconds: 5), () {
clearError();
});
}