setValue method

  1. @override
void setValue(
  1. Map<String, dynamic> val, {
  2. bool notify = true,
})
override

Sets the values of all controls from the provided map val.

Implementation

@override
void setValue(Map<String, dynamic> val, {bool notify = true}) {
  val.forEach((key, v) {
    if (controls.containsKey(key)) {
      controls[key]!.setValue(v, notify: notify);
    }
  });
  if(notify) notifyListeners();
}