PropertyValueTraits enum
Represents traits of PropertyDescriptor value.
Constructors
- PropertyValueTraits(int _bits)
-
Do not call this constructor directly.
const
Values
- none → const PropertyValueTraits
-
No special traits. This is default value.
const PropertyValueTraits(0)
- sensitive → const PropertyValueTraits
-
The value is senstive.
Note that this value also disable canRestoreState.
form_companion_generator
respects this value to set some constructor arguments for some form fields. For example, changeobscureText
totrue
.const PropertyValueTraits(_sensitiveBit | _doNotRestoreStateBit)
- doNotRestoreState → const PropertyValueTraits
-
The value should not be restored.
const PropertyValueTraits(_doNotRestoreStateBit)
Properties
- canRestoreState → bool
-
Gets a value whether the value can be restore.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- isSensitive → bool
-
Gets a value whether the value is senstive.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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
Constants
-
values
→ const List<
PropertyValueTraits> - A constant List of the values in this enum, in order of their declaration.