copyWith method
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,
})
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,
);
}