decorSolidRound function
Implementation
decorSolidRound({bool? isShadow, required double radius, Color? color}) =>
BoxDecoration(
color: color,
borderRadius: BorderRadius.all(Radius.circular(radius)),
boxShadow: (isShadow != true)
? null
: [
BoxShadow(
color: Colors.grey.withOpacity(0.5),
spreadRadius: 2,
blurRadius: 3,
offset: const Offset(0, 3), // changes position of shadow
)
],
);