capsule method
Extension method to directly access VxCapsule with any widget without wrapping or with dot operator.
Implementation
VxCapsule capsule({
Key? key,
Widget? child,
Color? backgroundColor,
double? width,
double? height,
BoxBorder? border,
BoxDecoration? customDecoration,
DecorationImage? backgroundImage,
BlendMode? blendMode,
Gradient? gradient,
List<BoxShadow>? shadows,
}) =>
VxCapsule(
key: key,
backgroundColor: backgroundColor,
border: border,
customDecoration: customDecoration,
width: width,
height: height,
backgroundImage: backgroundImage,
blendMode: blendMode,
gradient: gradient,
shadows: shadows,
child: this,
);