padding property Null safety

EdgeInsetsGeometry? padding
final

The amount of padding to apply to the snack bar's content and optional action.

If this property is null, the default padding values for:

If this property is not null, the padding assignment for:

  • content
    • Left, top and bottom paddings are assigned normally.
    • Right padding is assigned normally if there is no action, otherwise 0.
  • action
    • Left padding is replaced with half value of right padding.
    • Top and bottom paddings are assigned normally.
    • Right padding has an additional half value of right padding.
      right + (right / 2)
      

Implementation

final EdgeInsetsGeometry? padding;