wrap method

  1. @override
Widget wrap(
  1. Widget child
)
override

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,
  );
}