GSField.mobile constructor

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

Implementation

GSField.mobile({
  Key? key,
  required String tag,
  String? title,
  String? errorMessage,
  String? helpMessage,
  Widget? prefixWidget,
  Widget? postfixWidget,
  bool? required,
  bool? showTitle,
  GSFieldStatusEnum? status,
  String? value,
  int? weight,
  RegExp? validateRegEx,
  int? maxLength,
  String? hint,
  bool? readOnly,
}) : super(key: key) {
  model = GSMobileModel(
    type: GSFieldTypeEnum.mobile,
    tag: tag,
    title: title,
    errorMessage: errorMessage,
    helpMessage: helpMessage,
    prefixWidget: prefixWidget,
    postfixWidget: postfixWidget,
    required: required,
    showTitle: showTitle ?? true,
    status: status,
    value: value,
    weight: weight,
    maxLength: maxLength,
    hint: hint,
    enableReadOnly: readOnly,
  );
}