ColorMatrixFilter.adjust constructor Null safety

ColorMatrixFilter.adjust(
  1. {num hue = 0,
  2. num saturation = 0,
  3. num brightness = 0,
  4. num contrast = 0}
)

Implementation

factory ColorMatrixFilter.adjust(
    {num hue = 0, num saturation = 0, num brightness = 0, num contrast = 0}) {
  final colorMatrixFilter = ColorMatrixFilter.identity();
  colorMatrixFilter.adjustHue(hue);
  colorMatrixFilter.adjustSaturation(saturation);
  colorMatrixFilter.adjustBrightness(brightness);
  colorMatrixFilter.adjustContrast(contrast);
  return colorMatrixFilter;
}