onError static method

dynamic onError(
  1. String? message, {
  2. Icon? icon,
  3. Duration duration = const Duration(seconds: 5),
  4. bool isDismissible = true,
  5. String? actionableText,
  6. VoidCallback? onActionableTextedClicked,
})

Implementation

static onError(
  String? message, {
  Icon? icon,
  Duration duration = const Duration(seconds: 5),
  bool isDismissible = true,
  String? actionableText,
  VoidCallback? onActionableTextedClicked,
}) {
  _showDismissibleSnackBar(
    message,
    icon: icon,
    duration: duration,
    isDismissible: isDismissible,
    actionableText: actionableText,
    onActionableTextedClicked: onActionableTextedClicked,
    color: Palette.snackBarErrorColor,
  );
}