wrap method
Implementation
@override
Widget wrap(Widget child) {
return Container(
margin: margin,
padding: padding,
decoration: BoxDecoration(
border: borderColor != null
? Border.all(color: borderColor!, width: borderWidth)
: null,
color: backgroundColor,
borderRadius: BorderRadius.circular(borderRadius),
boxShadow: boxShadow != null ? [boxShadow!] : null,
),
child: child,
);
}