setValueFromString method

void setValueFromString(
  1. String key,
  2. dynamic value
)

Implementation

void setValueFromString(String key, dynamic value) {
  switch (key) {
    case 'patchScale':
      patchScale = value.toDouble();
      break;
    case 'useContrastCorrectedBlending':
      useContrastCorrectedBlending = value;
      break;
    case 'lookupSkipThreshold':
      lookupSkipThreshold = value.toDouble();
      break;
    case 'textureSampleCoefficientExponent':
      textureSampleCoefficientExponent = value.toInt();
      break;
    default:
  }
}