rce-code" id="source">
          <h2><span>Implementation</span></h2>
          <pre class="language-dart"><code class="language-dart">set colorFilter(ColorFilter value) {
  final _ColorFilter nativeFilter = value?._toNativeColorFilter();
  if (nativeFilter == null) {
    if (_objects != null) {
      _objects[_kColorFilterIndex] = null;
    }
  } else {
    if (_objects == null) {
      _objects = List&lt;dynamic&gt;(_kObjectCount);
      _objects[_kColorFilterIndex] = nativeFilter;
    } else if (_objects