BottomAppBar constructor Null safety
- {Key? key,
- Color? color,
- double? elevation,
- NotchedShape? shape,
- Clip clipBehavior = Clip.none,
- double notchMargin = 4.0,
- Widget? child,
- EdgeInsetsGeometry? padding,
- Color? surfaceTintColor,
- double? height}
Creates a bottom application bar.
The clipBehavior argument defaults to Clip.none and must not be null. Additionally, elevation must be non-negative.
If color, elevation, or shape are null, their BottomAppBarTheme values will be used. If the corresponding BottomAppBarTheme property is null, then the default specified in the property's documentation will be used.
Implementation
const BottomAppBar({
super.key,
this.color,
this.elevation,
this.shape,
this.clipBehavior = Clip.none,
this.notchMargin = 4.0,
this.child,
this.padding,
this.surfaceTintColor,
this.height,
}) : assert(elevation == null || elevation >= 0.0),
assert(notchMargin != null),
assert(clipBehavior != null);