showError static method

dynamic showError({
  1. dynamic message,
  2. required BuildContext context,
})

Implementation

static showError({message, required BuildContext context}) {
  return Richbar(
    message,
    duration: _kDuration,
    backgroundColor: kRedColor,
    richbarPosition: RichbarPosition.top,
    leading: const Icon(
      Icons.cancel_rounded,
      color: kRedColor,
    ),
  ).show(context);
}