MaterialBannerTheme constructor Null safety

const MaterialBannerTheme(
  1. {Key? key,
  2. MaterialBannerThemeData? data,
  3. required Widget child}
)

Creates a banner theme that controls the configurations for MaterialBanners in its widget subtree.

Implementation

const MaterialBannerTheme({
  Key? key,
  this.data,
  required Widget child,
}) : super(key: key, child: child);