getProperty method

double getProperty(
  1. Object prop
)

Gets the value of the property prop.

Implementation

double getProperty(Object prop) {
  if (_lerps.containsKey(prop)) {
    _lerps[prop as String]?.from = _lerps[prop]?.getProp!();
    // TODO: add initLerp(prop) to read the initial value from `target` ?
    return 0.0;
  }
  if (_accessors == null) {
    initProps();
  }
  return _accessors![prop]![0]();
}