PayEngineField constructor

PayEngineField(
  1. String name,
  2. String type,
  3. String placeholder,
  4. bool isRequired, {
  5. String? pattern,
  6. PayEngineKeyboardType keyboardType = PayEngineKeyboardType.normal,
})

Creates an instance of PayEngineField.

  • name: The name of the field.
  • type: The type of the field (e.g., "text", "email").
  • placeholder: Placeholder text shown when the field is empty.
  • isRequired: Whether the field is mandatory.
  • keyboardType: The keyboard type associated with the field. Defaults to PayEngineKeyboardType.normal.
  • pattern: A regex pattern used for input validation. If null, validation is not applied.

Implementation

PayEngineField(
  this.name,
  this.type,
  this.placeholder,
  this.isRequired, {
  this.pattern,
  this.keyboardType = PayEngineKeyboardType.normal,
});