colorFilter property

ColorFilter? colorFilter

A color filter to apply when a shape is drawn or when a layer is composited.

See ColorFilter for details.

When a shape is being drawn, colorFilter overrides color and shader.

Implementation

ColorFilter? get colorFilter {
  final _ColorFilter? nativeFilter = _objects?[_kColorFilterIndex] as _ColorFilter?;
  return nativeFilter?.creator;
}
void colorFilter=(ColorFilter? value)

Implementation

set colorFilter(ColorFilter? value) {
  final _ColorFilter? nativeFilter = value?._toNativeColorFilter();
  if (nativeFilter == null) {
    if (_objects != null) {
      _objects![_kColorFilterIndex] = null;
    }
  } else {
    _ensureObjectsInitialized()[_kColorFilterIndex] = nativeFilter;
  }
}