b method Null safety

ImageFilter b(
  1. double? radius
)

💧 b()

radius is of type double? and is required but may be null.

Returns ImageFilter.blur, passing radius ?? _BLUR == 4.0 as both ImageFilter.blur(sigmaX) & ImageFilter.blur(sigmaY).

Implementation

static ImageFilter b(double? radius) =>
    ImageFilter.blur(sigmaX: radius ?? _BLUR, sigmaY: radius ?? _BLUR);