mainButton property

Widget? mainButton
final

(optional) An action that the user can take based on the snack bar.

For example, the snack bar might let the user undo the operation that prompted the snackbar.

Implementation

final Widget? mainButton;