getShadowOpacity function

double getShadowOpacity(
  1. ShadowIntensity intensity
)

Implementation

double getShadowOpacity(ShadowIntensity intensity) {
  if (intensity == ShadowIntensity.NONE) {
    return 0.0;
  } else if (intensity == ShadowIntensity.SOFT) {
    return 0.2;
  } else if (intensity == ShadowIntensity.NORMAL) {
    return 0.4;
  } else {
    return 0.65;
  }
}