createAction static method

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

Implementation

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