defaultPinBoxDecoration property
getter/setter pair
Creates a default box decoration with border and shadow
Implementation
static PinBoxDecoration defaultPinBoxDecoration = (
Color? borderColor,
Color? pinBoxColor, {
double? borderWidth = 2.0,
double? radius = 5.0,
}) {
return BoxDecoration(
border: Border.all(
color: borderColor!,
width: borderWidth!,
),
boxShadow: [
BoxShadow(
color: Colors.grey[500]!.withOpacity(0.3),
spreadRadius: 2,
blurRadius: 4,
offset: const Offset(-2, 2), // changes position of shadow
),
],
color: pinBoxColor,
borderRadius: BorderRadius.circular(radius!));
};