radiusByLayer method

double radiusByLayer(
  1. SurfaceLayer layer
)

Check if � radiusMap has a value for this 📚 layer and return if so; if not, then check if this 📚 layer was initialized a specific double (such as � baseRadius) and return if so; finally, if all else fails, return const _BLUR

Implementation

double radiusByLayer(SurfaceLayer layer) {
  switch (layer) {
    case SurfaceLayer.BASE:
      return literalRadiusBase;
    case SurfaceLayer.MATERIAL:
      return literalRadiusMaterial;
    case SurfaceLayer.CHILD:
      return literalRadiusChild;
  }
}