confirm static method

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

Implementation

static confirm(BuildContext context,
    {String? note,
    String? title,
    bool actions = true,
    bool hasBarrier = true,
    FlashPosition position = FlashPosition.top}) {
  return _flash(context,
      title: title,
      borderColor: ClassColors.mtPrimary_5,
      backgroundColor: ClassColors.mtPrimary_5.withOpacity(0.5),
      hasBarrier: hasBarrier,
      note: note,
      actions: actions,
      position: position,
      icon:
          """<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3.33301 7.99984L6.66634 11.3332L13.333 4.6665" stroke="#16A34A" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
""");
}