success static method
Future
success(
- BuildContext context, {
- String? note,
- String? title,
- bool hasBarrier = false,
- FlashPosition position = FlashPosition.top,
Implementation
static Future success(BuildContext context,
{String? note,
String? title,
bool hasBarrier = false,
FlashPosition position = FlashPosition.top}) {
return _flash(context,
title: title,
borderColor: Color.fromRGBO(22, 163, 74, 1),
backgroundColor: Color.fromRGBO(227, 244, 233, 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="M3.33301 7.99984L6.66634 11.3332L13.333 4.6665" stroke="#16A34A" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
""");
}