setFlagForFields static method

Future<void> setFlagForFields(
  1. List<String> fieldNames,
  2. int flag,
  3. bool flagValue
)

Sets the value of the given flag to flagValue on the given form fields.

await PdftronFlutter.setFlagForFields(['First Name', 'Last Name'], FieldFlags.Required, true);

The flag is one of the constants from FieldFlags.

Implementation

static Future<void> setFlagForFields(
    List<String> fieldNames, int flag, bool flagValue) {
  return _channel.invokeMethod(Functions.setFlagForFields, <String, dynamic>{
    Parameters.fieldNames: fieldNames,
    Parameters.flag: flag,
    Parameters.flagValue: flagValue
  });
}