GSField.time constructor

GSField.time({
  1. Key? key,
  2. required String tag,
  3. String? title,
  4. String? errorMessage,
  5. String? helpMessage,
  6. Widget? prefixWidget,
  7. Widget? postfixWidget,
  8. bool? showTitle,
  9. bool? required,
  10. GSFieldStatusEnum? status,
  11. int? weight,
  12. RegExp? validateReg,
  13. int? maxLength,
  14. String? hint,
  15. TimeOfDay? initialTime,
})

Implementation

GSField.time({
  Key? key,
  required String tag,
  String? title,
  String? errorMessage,
  String? helpMessage,
  Widget? prefixWidget,
  Widget? postfixWidget,
  bool? showTitle,
  bool? required,
  GSFieldStatusEnum? status,
  int? weight,
  RegExp? validateReg,
  int? maxLength,
  String? hint,
  TimeOfDay? initialTime,
  // TimePickerType ? timePickerType ,
}) : super(key: key) {
  model = GSTimePickerModel(
    type: GSFieldTypeEnum.time,
    tag: tag,
    showTitle: showTitle ?? true,
    title: title,
    errorMessage: errorMessage,
    helpMessage: helpMessage,
    prefixWidget: prefixWidget,
    postfixWidget: postfixWidget,
    required: required,
    status: status,
    weight: weight,
    hint: hint,
    initialTime: initialTime,
    timePickerType: TimePickerType.english,
  );
}