radiusMap property Null safety

Map<SurfaceLayer, double> radiusMap

Returns a Map<SurfaceLayer, double> via radiusByLayer, and so will always have an entry for every 📚 Layer, even if it is the default _BLUR == 4.0.

radiusByLayer returns the corresponding renderedRadius_ field by 📚 SurfaceLayer switch.

A 📚 Layer that is not within filteredLayers will render no filter.

Implementation

Map<SurfaceLayer, double> get radiusMap => <SurfaceLayer, double>{
      for (var layer in SurfaceLayer.values) layer: radiusByLayer(layer)
    };