ValueField<T> constructor
const
ValueField<T>({ - Key? key,
- required void onChanged(
- T? value,
- string? valueString
),
- String? label,
- int levenshteinDistance = 2,
- Iterable<T> options = const [],
- List<TextInputFormatter> inputFormatters = const [],
- void onEditingComplete()?,
- String? validator(
- T?
)?,
- double? max,
- int lines = 1,
- T? value,
- bool readOnly = false,
- bool isAutoComplete = false,
- TextInputType? keyboardType,
- TextAlign? textAlign,
- bool obscureText = false,
- FocusNode? focusNode,
- bool autofocus = false,
- IconData? icon,
- void onIconTap()?,
- Future<List<T>> asyncItems(
- String
)?,
- Color? color,
- List<string> textValueSelector(
- T?
)?,
- Widget itemBuilder(
- BuildContext context,
- T,
- bool isSelected
)?,
- List searchOn(
- T
)?,
- dynamic suffixIcon,
- void onSuffixIconTap()?,
- Duration? debounce,
- void onFieldSubmitted(
- string
)?,
- TextEditingController? controller,
- bool equalityFunction(
- T a,
- T b
)?,
- int comparatorFunction(
- T a,
- T b
)?,
- TextInputAction? textInputAction,
- Widget emptySearch(
- BuildContext context,
- string searchEntry,
- string label
)?,
- InputDecoration? decoration,
})
Implementation
const ValueField({
super.key,
required this.onChanged,
this.label,
this.levenshteinDistance = 2,
this.options = const [],
this.inputFormatters = const [],
this.onEditingComplete,
this.validator,
this.max,
this.lines = 1,
this.value,
this.readOnly = false,
this.isAutoComplete = false,
this.keyboardType,
this.textAlign,
this.obscureText = false,
this.focusNode,
this.autofocus = false,
this.icon,
this.onIconTap,
this.asyncItems,
this.color,
this.textValueSelector,
this.itemBuilder,
this.searchOn,
this.suffixIcon,
this.onSuffixIconTap,
this.debounce,
this.onFieldSubmitted,
this.controller,
this.equalityFunction,
this.comparatorFunction,
this.textInputAction,
this.emptySearch,
this.decoration,
});