content | Map<String, dynamic> | The primary content of the snack bar. |
backgroundColor | String | The snack bar’s background color. |
elevation | double | The z-coordinate at which to place the snack bar. This controls the size of the shadow below the snack bar. |
margin | StacEdgeInsets | Empty space to surround the snack bar. |
padding | StacEdgeInsets | The amount of padding to apply to the snack bar’s content and optional action. |
width | double | The width of the snack bar. |
shape | StacShapeBorder | The shape of the snack bar. |
hitTestBehavior | HitTestBehavior | Defines how the snack bar area, including margin, will behave during hit testing. |
behavior | SnackBarBehavior | This defines the behavior and location of the snack bar. |
action | StacSnackBarAction | An action that the user can take based on the snack bar. |
actionOverflowThreshold | double | The percentage threshold for action widget’s width before it overflows to a new line. |
showCloseIcon | bool | Whether to include a close icon widget. |
closeIconColor | String | An optional color for the close icon, if close icon visible. |
duration | StacDuration | The duration for which the snack bar is visible. |
onVisible | Map<String, dynamic> | Called the first time that the snackbar is visible. |
dismissDirection | DismissDirection | The direction in which the SnackBar can be dismissed. |
clipBehavior | Clip | The content will be clipped (or not) according to this option. |