CredentialField class abstract
- Available extensions
- Annotations
-
- @freezed
Constructors
-
CredentialField({required String field, @CredentialFieldTypeConverter() required CredentialFieldType type, int? maxLength, int? minLength, num? maxValue, num? minValue, List<
String> ? choices, String? onlyField, List<String> ? onlyChoices, @CredentialFieldActionConverter() CredentialFieldAction? action, List<CredentialField> ? requiredFields}) -
constfactory
-
CredentialField.fromJson(Map<
String, dynamic> json) -
factory
Properties
- action → CredentialFieldAction?
-
actiondefines the action to show in the field (as suffix icon).no setterinherited -
choices
→ List<
String> ? -
choicesis the list of possible choices for the field, only used intype= CredentialFieldType.choices.no setterinherited -
copyWith
→ $CredentialFieldCopyWith<
CredentialField> -
Create a copy of CredentialField
with the given fields replaced by the non-null parameter values.
no setterinherited
- field → String
-
fieldis the name of the field, is a translation key.no setterinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- maxLength → int?
-
maxLengthis the maximum length of the field, only used intype= CredentialFieldType.string.no setterinherited - maxValue → num?
-
maxValueis the maximum value of the field, only used intype= CredentialFieldType.integer or CredentialFieldType.float.no setterinherited - minLength → int?
-
minLengthis the minimum length of the field, only used intype= CredentialFieldType.string.no setterinherited - minValue → num?
-
minValueis the minimum value of the field, only used intype= CredentialFieldType.integer or CredentialFieldType.float.no setterinherited -
onlyChoices
→ List<
String> ? -
onlyChoicesis the list of possible choices for the field, only used intype= CredentialFieldType.choices.no setterinherited - onlyField → String?
-
onlyFieldis the name of the field that must be present in the object, only used intype= CredentialFieldType.choices.no setterinherited -
requiredFields
→ List<
CredentialField> ? -
requiredFieldsrepresents the nested fields. Only used whentype= CredentialFieldType.nestedField.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → CredentialFieldType
-
typeis the type of the field.no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_CredentialField value)) → TResult -
Available on CredentialField, provided by the CredentialFieldPatterns extension
Aswitch-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_CredentialField value)?) → TResult? -
Available on CredentialField, provided by the CredentialFieldPatterns extension
A variant ofmapthat fallback to returningnull. -
maybeMap<
TResult extends Object?> (TResult $default(_CredentialField value)?, {required TResult orElse()}) → TResult -
Available on CredentialField, provided by the CredentialFieldPatterns extension
A variant ofmapthat fallback to returningorElse. -
maybeWhen<
TResult extends Object?> (TResult $default(String field, CredentialFieldType type, int? maxLength, int? minLength, num? maxValue, num? minValue, List< String> ? choices, String? onlyField, List<String> ? onlyChoices, CredentialFieldAction? action, List<CredentialField> ? requiredFields)?, {required TResult orElse()}) → TResult -
Available on CredentialField, provided by the CredentialFieldPatterns extension
A variant ofwhenthat fallback to anorElsecallback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this CredentialField to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(String field, CredentialFieldType type, int? maxLength, int? minLength, num? maxValue, num? minValue, List< String> ? choices, String? onlyField, List<String> ? onlyChoices, CredentialFieldAction? action, List<CredentialField> ? requiredFields)) → TResult -
Available on CredentialField, provided by the CredentialFieldPatterns extension
Aswitch-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(String field, CredentialFieldType type, int? maxLength, int? minLength, num? maxValue, num? minValue, List< String> ? choices, String? onlyField, List<String> ? onlyChoices, CredentialFieldAction? action, List<CredentialField> ? requiredFields)?) → TResult? -
Available on CredentialField, provided by the CredentialFieldPatterns extension
A variant ofwhenthat fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited