ImageFilterConfig constructor
- ImageFilter filter
Creates a configuration that directly wraps an existing ui.ImageFilter.
This constructor adapts standard engine-level filters to APIs that require an ImageFilterConfig.
Because the provided ui.ImageFilter is already instantiated, it cannot incorporate layout information (such as bounds) from the ImageFilterContext during resolution. For example, wrapping a ui.ImageFilter.blur results in a static blur with fixed parameters.
For effects that must adapt to the layout, such as a "bounded" blur, use the ImageFilterConfig.blur constructor instead.
The filter property of an instance created with this constructor
returns the original filter.
Implementation
const factory ImageFilterConfig(ui.ImageFilter filter) = _DirectImageFilterConfig;