ImageFilter.compose constructor Null safety
- {required ImageFilter outer,
- 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)).
Implementation
factory ImageFilter.compose({ required ImageFilter outer, required ImageFilter inner }) {
assert(inner != null && outer != null);
return _ComposeImageFilter(innerFilter: inner, outerFilter: outer);
}