error static method

dynamic error(
  1. BuildContext context,
  2. dynamic msg
)

Implementation

static error(BuildContext context, msg) {
  Flushbar(
    title: "Error",
    message:
    "$msg",
    duration: Duration(seconds: 1),
    backgroundColor: Colors.red,
  )..show(context);
}