ImageFilter.compose constructor

  1. {required ImageFilter outer,
  2. required ImageFilter inner}

Composes the inner filter with outer, to combine their effects.

Creates a single ImageFilter that when applied, has the same effect as subsequently applying inner and outer, i.e., result = outer(inner(source)).


factory ImageFilter.compose({ required ImageFilter outer, required ImageFilter inner }) {
  return _ComposeImageFilter(innerFilter: inner, outerFilter: outer);