createAction static method
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,
);
}