error static method

dynamic error(
  1. BuildContext context, {
  2. String? note,
  3. String? title,
  4. bool hasBarrier = false,
  5. FlashPosition position = FlashPosition.top,
})

Implementation

static error(BuildContext context,
    {String? note,
    String? title,
    bool hasBarrier = false,
    FlashPosition position = FlashPosition.top}) {
  return _flash(context,
      title: title,
      backgroundColor: Color.fromRGBO(253, 233, 233, 1),
      borderColor: Color.fromRGBO(239, 68, 68, 1),
      hasBarrier: hasBarrier,
      note: note,
      position: position,
      icon:
          """<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z" stroke="#EF4444" stroke-linecap="round" stroke-linejoin="round"/>
<path d="M6.66699 6.6665L9.33366 9.33317M9.33366 6.6665L6.66699 9.33317" stroke="#EF4444" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
""");
}