Skip to content

Commit 2bf0cbf

Browse files
SaadArdatiBirjuVachhani
authored andcommitted
Formatters & Validators #3
1 parent f6b1cab commit 2bf0cbf

File tree

3 files changed

+6
-17
lines changed

3 files changed

+6
-17
lines changed

lib/src/api/models/text_input_autofill_hints.dart

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ This hint will be translated to the below values on different platforms:
186186

187187
/// The input field expects the holder's last/family name as given on a credit
188188
/// card.
189-
///
190-
/// This hint will be translated to the below values on different platforms:
191-
///
192-
/// * web: ["cc-family-name"](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofilling-form-controls:-the-autocomplete-attribute).
193-
/// * Otherwise, the hint string will be used as-is.
194189
creditCardFamilyName(
195190
'creditCardFamilyName',
196191
'Credit Card Family Name',
@@ -205,11 +200,6 @@ This hint will be translated to the below values on different platforms:
205200

206201
/// The input field expects the holder's first/given name as given on a credit
207202
/// card.
208-
///
209-
/// This hint will be translated to the below values on different platforms:
210-
///
211-
/// * web: ["cc-given-name"](https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofilling-form-controls:-the-autocomplete-attribute).
212-
/// * Otherwise, the hint string will be used as-is.
213203
creditCardGivenName(
214204
'creditCardGivenName',
215205
'Credit Card Given Name',
@@ -623,7 +613,6 @@ This hint will be translated to the below values on different platforms:
623613
),
624614

625615
/// The input field expects an extended ZIP/POSTAL code.
626-
// static const String postalAddressExtendedPostalCode = 'postalAddressExtendedPostalCode';
627616
postalAddressExtendedPostalCode(
628617
'postalAddressExtendedPostalCode',
629618
'Postal Address Extended Postal Code',

lib/src/api/nodes/text_field_node.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
212212

213213
/// A list of autofill hints that the field should provide to underlying
214214
/// device's autofill service.
215-
List<TextInputAutofillHints> autofillHints;
215+
Set<TextInputAutofillHints> autofillHints;
216216

217217
/// Creates a [TextFieldProperties] instance with the given data.
218218
TextFieldProperties({
@@ -243,7 +243,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
243243
this.showSignKey = false,
244244
this.formatter = TextInputFormatterModel.none,
245245
this.validator = const NoneTextInputValidatorModel(),
246-
this.autofillHints = const [],
246+
this.autofillHints = const {},
247247
}) : inputStyle = inputStyle ??
248248
StartEndProp.general(fontSize: 14, fills: [PaintModel.blackPaint]),
249249
decoration = decoration ?? InputDecorationModel();
@@ -278,7 +278,7 @@ class TextFieldProperties with SerializableMixin, EquatableMixin {
278278
bool? showSignKey,
279279
TextInputFormatterModel? formatter,
280280
TextInputValidatorModel? validator,
281-
List<TextInputAutofillHints>? autofillHints,
281+
Set<TextInputAutofillHints>? autofillHints,
282282
}) {
283283
return TextFieldProperties(
284284
autoCorrect: autoCorrect ?? this.autoCorrect,

lib/src/api/nodes/text_field_node.g.dart

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)