renderFiltered method Null safety

  1. @override
void renderFiltered(
  1. RenderState renderState
)
override

Renders this display object with the given renderState. The display object is rendered with its filters.

Note: You do not need to override this method in a derived class since the render method will be used by default. Only implement this method for performance optimizations.

Implementation

@override
void renderFiltered(RenderState renderState) {
  if (_type == TextFieldType.INPUT) {
    super.renderFiltered(renderState);
  } else if (renderState.renderContext is RenderContextWebGL ||
      _cacheAsBitmap) {
    _refreshTextLineMetrics();
    _refreshCache(renderState.globalMatrix);
    renderState.renderTextureQuadFiltered(_renderTextureQuad!, filters);
  } else {
    super.renderFiltered(renderState);
  }
}