ImageFilter.erode constructor Null safety

ImageFilter.erode(
  1. {double radiusX = 0.0,
  2. double radiusY = 0.0}
)

Create a filter that erodes each input pixel's channel values to the minimum channel value within the given radii along the x and y axes.

Implementation

factory ImageFilter.erode({ double radiusX = 0.0, double radiusY = 0.0 }) {
  assert(radiusX != null);
  assert(radiusY != null);
  return _ErodeImageFilter(radiusX: radiusX, radiusY: radiusY);
}