createError static method
Get a error notification flushbar
Implementation
static Flushbar createError(
{required String message,
String? title,
Duration duration = const Duration(seconds: 3)}) {
return Flushbar(
title: title,
message: message,
icon: Icon(
Icons.warning,
size: 28.0,
color: Colors.red[300],
),
leftBarIndicatorColor: Colors.red[300],
duration: duration,
);
}