number<T extends num> static method
TFormField<T>
number<T extends num>(
- TFieldProp<
T> prop, - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- bool readOnly = false,
- TNumberFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- TextEditingController? textController,
- List<
String? Function(T?)> ? rules,
Implementation
static TFormField<T> number<T extends num>(
TFieldProp<T> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
bool readOnly = false,
TNumberFieldTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
TextEditingController? textController,
List<String? Function(T?)>? rules,
}) {
return TFormField<T>(
prop: prop,
builder: (onValueChanged) => TNumberField<T>(
label: label,
tag: tag,
placeholder: placeholder,
helperText: helperText,
isRequired: isRequired,
disabled: disabled,
autoFocus: autoFocus,
readOnly: readOnly,
theme: theme,
focusNode: focusNode,
onTap: onTap,
textController: textController,
rules: rules,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}