createAction static method

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

Get a flushbar that can receive a user action through a button.

Implementation

static Flushbar createAction(
    {required String message,
    required Widget button,
    String? title,
    Duration duration = const Duration(seconds: 3)}) {
  return Flushbar(
    title: title,
    message: message,
    duration: duration,
    mainButton: button,
  );
}