createSuccess static method

Flushbar createSuccess({
  1. required String message,
  2. String? title,
  3. Duration duration = const Duration(seconds: 3),
})

Get a success notification flushbar.

Implementation

static Flushbar createSuccess(
    {required String message,
    String? title,
    Duration duration = const Duration(seconds: 3)}) {
  return Flushbar(
    title: title,
    message: message,
    icon: Icon(
      Icons.check_circle,
      color: Colors.green[300],
    ),
    leftBarIndicatorColor: Colors.green[300],
    duration: duration,
  );
}