decorationBuild method
Implementation
Widget decorationBuild(BuildContext context, Widget child) {
final SheetDecorationBuilder decorationBuilder = this.decorationBuilder ??
(BuildContext context, Widget child) {
final BottomSheetThemeData bottomSheetTheme =
Theme.of(context).bottomSheetTheme;
final Color? color =
backgroundColor ?? bottomSheetTheme.backgroundColor;
final double elevation =
this.elevation ?? bottomSheetTheme.elevation ?? 0;
final ShapeBorder? shape = this.shape ?? bottomSheetTheme.shape;
final Clip clipBehavior =
this.clipBehavior ?? bottomSheetTheme.clipBehavior ?? Clip.none;
return Material(
color: color,
elevation: elevation,
shape: shape,
clipBehavior: clipBehavior,
child: child,
);
};
return decorationBuilder(context, child);
}