ImageFilter.blur constructor Null safety

ImageFilter.blur(
  1. {double sigmaX = 0.0,
  2. double sigmaY = 0.0,
  3. TileMode tileMode = TileMode.clamp}
)

Creates an image filter that applies a Gaussian blur.

Implementation

factory ImageFilter.blur({ double sigmaX = 0.0, double sigmaY = 0.0, TileMode tileMode = TileMode.clamp }) {
  assert(sigmaX != null);
  assert(sigmaY != null);
  assert(tileMode != null);
  return _GaussianBlurImageFilter(sigmaX: sigmaX, sigmaY: sigmaY, tileMode: tileMode);
}