wrap method

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

Implementation

@override
Widget wrap(Widget child) {
  return Container(
    margin: margin,
    padding: padding,
    decoration: BoxDecoration(
      color: isSelected
          ? (selectedColor ??
                Colors.blueAccent.withAlpha((0.2 * 255).round()))
          : (backgroundColor ?? Colors.transparent),
      borderRadius: BorderRadius.circular(borderRadius),
      border: Border.all(
        color: isSelected
            ? (selectedColor ?? Colors.blueAccent)
            : Colors.grey,
        width: 1.5,
      ),
    ),
    child: child,
  );
}