setOptional method

void setOptional(
  1. RenderingContext gl,
  2. dynamic object,
  3. String name
)

Implementation

void setOptional(RenderingContext gl, object, String name) {
  final v = object.getValue(name);
  if (v != null) setValue(gl, name, v);
}