MetaDataField class

Information about the metadata to pass to the signup form

You can use this object to create additional fields that will be passed to the metadata of the user upon signup. For example, in order to create additional username field, you can use the following:

MetaDataField(label: 'Username', key: 'username')

Which will update the user's metadata in like the following:

{ 'username': 'Whatever your user entered' }

Constructors

MetaDataField({required String label, required String key, String? validator(String?)?, Icon? prefixIcon})

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
Key to be used when sending the metadata to Supabase
final
label String
Label of the TextFormField for this metadata
final
prefixIcon Icon?
Icon to show as the prefix icon in TextFormField
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validator → (String? Function(String?)?)
Validator function for the metadata field
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited