margin property

EdgeInsetsGeometry? margin
final

Empty space to surround the snack bar.

This property is only used when behavior is SnackBarBehavior.floating. It can not be used if width is specified.

If this property is null, then SnackBarThemeData.insetPadding of ThemeData.snackBarTheme is used. If that is also null, then the default is EdgeInsets.fromLTRB(15.0, 5.0, 15.0, 10.0).

If this property is not null and hitTestBehavior is null, then hitTestBehavior default is HitTestBehavior.deferToChild.

Implementation

final EdgeInsetsGeometry? margin;