material method
Wrap if necessary.
child
: The child widget.
Implementation
@protected
Widget material(Widget child) {
if (spwmlParams.p.materialParams != null) {
return Material(
key: spwmlParams.p.materialParams!.key,
type: spwmlParams.p.materialParams!.type,
elevation: spwmlParams.p.materialParams!.elevation,
color: spwmlParams.p.materialParams!.color,
shadowColor: spwmlParams.p.materialParams!.shadowColor,
surfaceTintColor: spwmlParams.p.materialParams!.surfaceTintColor,
textStyle: spwmlParams.p.materialParams!.textStyle,
borderRadius: spwmlParams.p.materialParams!.borderRadius,
shape: spwmlParams.p.materialParams!.shape,
borderOnForeground: spwmlParams.p.materialParams!.borderOnForeground,
clipBehavior: spwmlParams.p.materialParams!.clipBehavior,
animationDuration: spwmlParams.p.materialParams!.animationDuration,
child: child);
} else {
return child;
}
}