UserPreferencesEditValueDialog<T> class
Null safety
Generic value editor The result will be sent through the Navigator
Constructors
-
UserPreferencesEditValueDialog({required String label, required T? initialValue, required EditorValueConverter<
T?> converter, EditorValueValidator<T> ? validator, dynamic keyboardType, dynamic textAlignment, dynamic key}) -
const
Properties
-
converter
→ EditorValueConverter<
T?> -
Mandatory field to convert between the String entered by the user
and the expected type
T
. This is also the result passed to the Navigator.final - hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- initialValue → T?
-
Initial value of type
T
, which may be null. In that case the label will be used as the hint.final - keyboardType → dynamic
-
final
- label → String
-
Title of the dialog
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- textAlignment → dynamic
-
final
-
validator
→ EditorValueValidator<
T> ? -
Current value validator.
The "OK" button will be disabled until
false
is returned. Without passing this validator, all values are considered as correct.final
Methods
-
createState(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
A string representation of this object. [...]
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited