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