updateValues method

void updateValues(
  1. Map<String, Object?> values
)

Implementation

void updateValues(Map<String, Object?> values) {
  for (var key in formResult.keys) {
    final parsed = ObjectDescovery.descovr(
      values[key],
      formResult[key]!.field.type,
      def: formResult[key]!.field.defaultValue,
    );
    formResult[key]!.value = parsed;
    formResult[key]!.parsedValue = parsed;
  }
}