MaterialBannerThemeData constructor Null safety

const MaterialBannerThemeData(
  1. {Color? backgroundColor,
  2. TextStyle? contentTextStyle,
  3. double? elevation,
  4. EdgeInsetsGeometry? padding,
  5. EdgeInsetsGeometry? leadingPadding}
)

Creates a theme that can be used for MaterialBannerTheme or ThemeData.bannerTheme.

Implementation

const MaterialBannerThemeData({
  this.backgroundColor,
  this.contentTextStyle,
  this.elevation,
  this.padding,
  this.leadingPadding,
});