shape property Null safety

ShapeBorder? shape
final

The shape of the snack bar's Material.

Defines the snack bar's Material.shape.

If this property is null then SnackBarThemeData.shape of ThemeData.snackBarTheme is used. If that's null then the shape will depend on the SnackBarBehavior. For SnackBarBehavior.fixed, no overriding shape is specified, so the SnackBar is rectangular. For SnackBarBehavior.floating, it uses a RoundedRectangleBorder with a circular corner radius of 4.0.

Implementation

final ShapeBorder? shape;