shadowMaxBlurRadiusPlusMaxSpreadRadius property
double
get
shadowMaxBlurRadiusPlusMaxSpreadRadius
The max blur radius plus max spread radius of the dropdown.
Implementation
double get shadowMaxBlurRadiusPlusMaxSpreadRadius {
double max = 0;
for (final shadow in shadows) {
final blurRadius = shadow.blurRadius;
final spreadRadius = shadow.spreadRadius;
final offset = shadow.offset;
final maxBlurRadiusPlusMaxSpreadRadius =
blurRadius + spreadRadius + offset.distance;
if (maxBlurRadiusPlusMaxSpreadRadius > max) {
max = maxBlurRadiusPlusMaxSpreadRadius;
}
}
return 2 * max;
}