time static method
TFormField<TimeOfDay>
time(
- TFieldProp<
TimeOfDay> prop, - String? label, {
- String? tag,
- String? placeholder,
- String? helperText,
- bool isRequired = false,
- bool disabled = false,
- bool autoFocus = false,
- bool readOnly = false,
- TTextFieldTheme? theme,
- FocusNode? focusNode,
- VoidCallback? onTap,
- TextEditingController? textController,
- List<
String? Function(TimeOfDay?)> ? rules, - VoidCallback? onShow,
- VoidCallback? onHide,
- DateFormat? format,
Implementation
static TFormField<TimeOfDay> time(
TFieldProp<TimeOfDay> prop,
String? label, {
String? tag,
String? placeholder,
String? helperText,
bool isRequired = false,
bool disabled = false,
bool autoFocus = false,
bool readOnly = false,
TTextFieldTheme? theme,
FocusNode? focusNode,
VoidCallback? onTap,
TextEditingController? textController,
List<String? Function(TimeOfDay?)>? rules,
VoidCallback? onShow,
VoidCallback? onHide,
DateFormat? format,
}) {
return TFormField<TimeOfDay>(
prop: prop,
builder: (onValueChanged) => TTimePicker(
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,
onShow: onShow,
onHide: onHide,
format: format,
value: prop.value,
valueNotifier: prop.valueNotifier,
onValueChanged: onValueChanged,
),
);
}