make method
Implementation
@override
Widget make({Key? key}) {
if (!willRender) {
return const VxNone();
}
return Container(
key: key,
height: _height,
constraints: _constraints,
clipBehavior: _clip ?? Clip.none,
width: _width,
padding: velocityPadding,
margin: _margin,
alignment: velocityAlignment,
transform: _transform,
foregroundDecoration: _foregroundDecoration,
decoration: _velocityNeumorph != null
? BoxDecoration(
borderRadius: _isCircleRounded || (roundedValue == null)
? null
: (radiusGeometry ?? BorderRadius.circular(roundedValue!)),
shape: _isCircleRounded ? BoxShape.circle : BoxShape.rectangle,
boxShadow: _velocityNeumorph!.shadows,
border: _border,
gradient: velocityGradient ?? _velocityNeumorph!.gradient,
image: _bgImage,
)
: _decoration ??
BoxDecoration(
color: velocityColor,
borderRadius: _isCircleRounded || (roundedValue == null)
? null
: (radiusGeometry ?? BorderRadius.circular(roundedValue!)),
shape: _isCircleRounded ? BoxShape.circle : BoxShape.rectangle,
boxShadow: velocityShadow ?? _boxShadow ?? [],
border: _border,
gradient: velocityGradient ?? _gradient,
image: _bgImage,
),
child: child,
);
}