border method

VContainer border({
  1. Color color = Colors.black,
  2. double width = 1,
})

Adds a border to the container.

Implementation

VContainer border({Color color = Colors.black, double width = 1}) =>
    VContainer(
      child: child,
      alignment: alignment,
      padding: padding,
      margin: margin,
      width: _width,
      height: _height,
      decoration:
          (decoration?.copyWith(
            border: Border.all(color: color, width: width),
          )) ??
          BoxDecoration(
            border: Border.all(color: color, width: width),
          ),
    );