shadowOffset method

DefineMAddButtonModifier shadowOffset(
  1. double dx,
  2. double dy
)

Implementation

DefineMAddButtonModifier shadowOffset(double dx, double dy) {
  final valueShadow = BoxShadow(
    color: this.valueShadow?.color ?? Color(0xff000000).withOpacity(0.1),
    offset: Offset(dx, dy),
    blurRadius: this.valueShadow?.blurRadius ?? 4,
    spreadRadius: this.valueShadow?.spreadRadius ?? 0,
  );
  return this.copyWith(valueShadow: valueShadow);
}