showMessageError method

dynamic showMessageError(
  1. String message, {
  2. String title = "Message",
  3. Widget? titleWidget,
  4. Widget? messageWidget,
  5. MessageStyle style = MessageStyle.flatColored,
  6. bool autoClose = true,
  7. int autoCloseDurationSeconds = 5,
  8. Alignment alignment = Alignment.bottomRight,
  9. TextDirection textDirection = TextDirection.ltr,
  10. bool showAnimation = false,
  11. int animationDurationMillis = 300,
  12. Widget? customIcon,
})

Implementation

showMessageError(
  String message, {
  String title = "Message",
  Widget? titleWidget,
  Widget? messageWidget,
  MessageStyle style = MessageStyle.flatColored,
  bool autoClose = true,
  int autoCloseDurationSeconds = 5,
  Alignment alignment = Alignment.bottomRight,
  TextDirection textDirection = TextDirection.ltr,
  bool showAnimation = false,
  int animationDurationMillis = 300,
  Widget? customIcon,
}) {
  showMessage(
    message,
    title: title,
    titleWidget: titleWidget,
    messageWidget: messageWidget,
    type: MessageType.error,
    style: style,
    autoClose: autoClose,
    autoCloseDurationSeconds: autoCloseDurationSeconds,
    alignment: alignment,
    textDirection: textDirection,
    showAnimation: autoClose,
    animationDurationMillis: animationDurationMillis,
    customIcon: customIcon,
  );
}