MaterialBanner constructor Null safety

const MaterialBanner(
  1. {Key? key,
  2. required Widget content,
  3. TextStyle? contentTextStyle,
  4. required List<Widget> actions,
  5. double? elevation,
  6. Widget? leading,
  7. Color? backgroundColor,
  8. Color? surfaceTintColor,
  9. Color? shadowColor,
  10. Color? dividerColor,
  11. EdgeInsets? padding,
  12. EdgeInsets? leadingPadding,
  13. @Default(false) bool forceActionsBelow,
  14. @Default(OverflowBarAlignment.end) OverflowBarAlignment overflowAlignment,
  15. Callback? onVisible}
)

Implementation

const factory MaterialBanner({
  Key? key,
  required Widget content,
  TextStyle? contentTextStyle,
  required List<Widget> actions,
  double? elevation,
  Widget? leading,
  Color? backgroundColor,
  Color? surfaceTintColor,
  Color? shadowColor,
  Color? dividerColor,
  EdgeInsets? padding,
  EdgeInsets? leadingPadding,
  @Default(false) bool forceActionsBelow,
  @Default(OverflowBarAlignment.end) OverflowBarAlignment overflowAlignment,
  Callback? onVisible,
}) = _MaterialBanner;