RenderingType$cast function

RenderingType? RenderingType$cast(
  1. dynamic value
)

Implementation

RenderingType? RenderingType$cast(value) {
  if (value == RenderingType.RASTER) return RenderingType.RASTER;
  if (value == RenderingType.UNINITIALIZED) return RenderingType.UNINITIALIZED;
  if (value == RenderingType.VECTOR) return RenderingType.VECTOR;
  return null;
}