setValuesForFields method
Sets the field value of the given form fields.
await controller.setValuesForFields([
new Field('textField1', "Pdftron"),
new Field('textField2', 12.34),
new Field('checkboxField1', true),
new Field('checkboxField2', false),
new Field('radioField', "Yes"),
new Field('choiceField', "No")
]);
Each Field object in fields
must be set with a name and a value.
The value's type can be number, bool, or string.
Implementation
Future<void> setValuesForFields(List<Field> fields) {
return _channel.invokeMethod(Functions.setValuesForFields,
<String, dynamic>{Parameters.fields: jsonEncode(fields)});
}