decorSolidRound function

dynamic decorSolidRound({
  1. bool? isShadow,
  2. required double radius,
  3. Color? color,
})

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
              )
            ],
    );