setValue method

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

Performs validation and type conversion on the value before placing it in our list of values.

Implementation

void setValue(String key, dynamic value) {
  final entry = AFibD.findConfigEntry(key);

  if(entry == null) {
    throw AFException("No entry defined for $key, try defining an AFConfigEntry in extendBase using registerConfigEntry");
  }
  entry.setValue(this, value);
}