TimeField constructor

const TimeField({
  1. TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial,
  2. int? maxLength = 5,
  3. IconData? suffixIconData = FontAwesomeIcons.clock,
  4. String? labelPrefix = '',
  5. String? label,
  6. Widget? labelWidget,
  7. TimeEditingController? controller,
  8. FormFieldValidator<TimeOfDay?>? validator,
  9. TextAlign textAlign = TextAlign.start,
  10. FormFieldSetter<TimeOfDay?>? onSaved,
  11. TimeOfDay? initialValue,
  12. bool enabled = true,
  13. AutovalidateMode autoValidateMode = AutovalidateMode.disabled,
  14. FocusNode? focusNode,
  15. TextInputAction? textInputAction,
  16. ValueChanged<String?>? onFieldSubmitted,
  17. EdgeInsets scrollPadding = const EdgeInsets.all(20),
  18. bool enableInteractiveSelection = true,
  19. bool filled = false,
  20. Color? fillColor,
  21. bool readOnly = false,
  22. TextStyle? style,
  23. InputDecoration? decoration,
  24. EdgeInsets padding = const EdgeInsets.all(8),
  25. String? hintText,
  26. EdgeInsets? contentPadding,
  27. String? counterText = '',
  28. Widget? prefix,
  29. Widget? prefixIcon,
  30. void onTap()?,
  31. void lostFocus(
    1. TimeOfDay?
    )?,
  32. bool required = true,
  33. bool clearOnCancel = true,
  34. int? sizeExtraSmall,
  35. int? sizeSmall,
  36. int? sizeMedium,
  37. int? sizeLarge,
  38. int? sizeExtraLarge,
  39. double? minHeight,
  40. Key? key,
})

Implementation

const TimeField({
  this.initialEntryMode = TimePickerEntryMode.dial,
  super.maxLength = 5,
  super.suffixIconData = FontAwesomeIcons.clock,
  super.labelPrefix,
  super.label,
  super.labelWidget,
  super.controller,
  super.validator,
  super.textAlign = TextAlign.start,
  super.onSaved,
  super.initialValue,
  super.enabled = true,
  super.autoValidateMode = AutovalidateMode.disabled,
  super.focusNode,
  super.textInputAction,
  super.onFieldSubmitted,
  super.scrollPadding = const EdgeInsets.all(20),
  super.enableInteractiveSelection = true,
  super.filled = false,
  super.fillColor,
  super.readOnly = false,
  super.style,
  super.decoration,
  super.padding = const EdgeInsets.all(8),
  super.hintText,
  super.contentPadding,
  super.counterText,
  super.prefix,
  super.prefixIcon,
  super.onTap,
  super.lostFocus,
  super.required = true,
  super.clearOnCancel = true,
  super.sizeExtraSmall,
  super.sizeSmall,
  super.sizeMedium,
  super.sizeLarge,
  super.sizeExtraLarge,
  super.minHeight,
  super.key,
});