warn static method

Future warn(
  1. BuildContext context, {
  2. String? note,
  3. String? title,
  4. bool actions = false,
  5. Function? yesOnTap,
  6. Function? noOnTap,
  7. bool hasBarrier = false,
  8. FlashPosition position = FlashPosition.top,
})

Implementation

static Future warn(BuildContext context,
    {String? note,
    String? title,
    bool actions = false,
    Function? yesOnTap,
    Function? noOnTap,
    bool hasBarrier = false,
    FlashPosition position = FlashPosition.top}) {
  return _flash(context,
      title: title,
      borderColor: Color.fromRGBO(246, 173, 6, 1),
      noOnTap: noOnTap,
      yesOnTap: yesOnTap,
      actions: actions,
      backgroundColor: Color.fromRGBO(254, 249, 227, 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="M7.9998 6.00016V7.3335M7.9998 10.0002V10.0068M3.33313 12.6668H12.6665C12.884 12.6653 13.0979 12.6106 13.2894 12.5074C13.4809 12.4043 13.6443 12.2558 13.7653 12.075C13.8862 11.8942 13.9611 11.6865 13.9834 11.4701C14.0057 11.2537 13.9747 11.0352 13.8931 10.8335L9.1598 2.66684C9.0445 2.45844 8.87547 2.28473 8.6703 2.16376C8.46513 2.0428 8.23131 1.979 7.99313 1.979C7.75496 1.979 7.52114 2.0428 7.31597 2.16376C7.1108 2.28473 6.94177 2.45844 6.82647 2.66684L2.09313 10.8335C2.0131 11.0306 1.98136 11.2439 2.00057 11.4557C2.01978 11.6675 2.08938 11.8717 2.20357 12.0511C2.31775 12.2305 2.47321 12.3801 2.65695 12.4872C2.8407 12.5943 3.0474 12.6559 3.2598 12.6668" stroke="#F6AD06" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
""");
}