copyWith method

MyFormObj copyWith({
  1. String? title,
  2. String? serverName,
  3. MyFormType? type,
  4. bool? optional,
  5. bool? readOnly,
  6. dynamic choiceValue,
  7. String? hint,
  8. String? afterCount,
  9. Widget? suffixIcon,
  10. Widget? prefixIcon,
  11. Widget? bottomWidget,
  12. TextEditingController? controller,
  13. List<ChoiceObj>? choiceObjs,
  14. int? flex,
})

Implementation

MyFormObj copyWith({
  String? title,
  String? serverName,
  MyFormType? type,
  bool? optional,
  bool? readOnly,
  dynamic choiceValue,
  String? hint,
  String? afterCount,
  Widget? suffixIcon,
  Widget? prefixIcon,
  Widget? bottomWidget,
  TextEditingController? controller,
  List<ChoiceObj>? choiceObjs,
  int? flex,
}) {
  return MyFormObj(
    title: title ?? this.title,
    serverName: serverName ?? this.serverName,
    type: type ?? this.type,
    optional: optional ?? this.optional,
    readOnly: readOnly ?? this.readOnly,
    choiceValue: choiceValue ?? this.choiceValue,
    hint: hint ?? this.hint,
    afterCount: afterCount ?? this.afterCount,
    suffixIcon: suffixIcon ?? this.suffixIcon,
    prefixIcon: prefixIcon ?? this.prefixIcon,
    bottomWidget: bottomWidget ?? this.bottomWidget,
    controller: controller ?? this.controller,
    choiceObjs: choiceObjs ?? this.choiceObjs,
    flex: flex ?? this.flex,
  );
}