setValuesForFields static method

Future<void> setValuesForFields(
  1. List<Field> fields
)

Sets the field value of the given form fields.

await PdftronFlutter.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

static Future<void> setValuesForFields(List<Field> fields) {
  return _channel.invokeMethod(Functions.setValuesForFields,
      <String, dynamic>{Parameters.fields: jsonEncode(fields)});
}