copyWith method

ZetaSearchBar copyWith({
  1. ZetaWidgetSize? size,
  2. String? placeholder,
  3. ZetaWidgetBorder? shape,
  4. TextInputAction? textInputAction,
  5. Future<String?> onSpeechToText()?,
  6. bool? showSpeechToText,
  7. FocusNode? focusNode,
  8. String? microphoneSemanticLabel,
  9. String? clearSemanticLabel,
  10. String? initialValue,
  11. TextEditingController? controller,
  12. AutovalidateMode? autovalidateMode,
  13. String? validator(
    1. String?
    )?,
  14. void onSaved(
    1. String?
    )?,
  15. ZetaFormFieldRequirement? requirementLevel,
  16. Key? key,
})

Creates a copy of the ZetaSearchBar with the passed properties.

Implementation

ZetaSearchBar copyWith({
  ZetaWidgetSize? size,
  String? placeholder,
  ZetaWidgetBorder? shape,
  TextInputAction? textInputAction,
  Future<String?> Function()? onSpeechToText,
  bool? showSpeechToText,
  FocusNode? focusNode,
  String? microphoneSemanticLabel,
  String? clearSemanticLabel,
  String? initialValue,
  TextEditingController? controller,
  AutovalidateMode? autovalidateMode,
  String? Function(String?)? validator,
  void Function(String?)? onSaved,
  ZetaFormFieldRequirement? requirementLevel,
  Key? key,
}) {
  return ZetaSearchBar(
    size: size ?? this.size,
    placeholder: placeholder ?? this.placeholder,
    shape: shape ?? this.shape,
    textInputAction: textInputAction ?? this.textInputAction,
    onSpeechToText: onSpeechToText ?? this.onSpeechToText,
    showSpeechToText: showSpeechToText ?? this.showSpeechToText,
    focusNode: focusNode ?? this.focusNode,
    microphoneSemanticLabel: microphoneSemanticLabel ?? this.microphoneSemanticLabel,
    clearSemanticLabel: clearSemanticLabel ?? this.clearSemanticLabel,
    initialValue: initialValue ?? this.initialValue,
    controller: controller ?? this.controller,
    autovalidateMode: autovalidateMode ?? this.autovalidateMode,
    validator: validator ?? this.validator,
    onSaved: onSaved ?? this.onSaved,
    requirementLevel: requirementLevel ?? this.requirementLevel,
    key: key ?? this.key,
  );
}