setFlagForFields static method
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
  });
}