copyWith method
Creates a copy of this FileUploadOptions with the given fields replaced with new values
Implementation
VoiceOptions copyWith({
bool? enabled,
IconData? voiceIcon,
IconData? keyboardIcon,
Color? voiceIconColor,
double? voiceIconSize,
String? tooltip,
void Function(bool isVoice)? onVoiceState,
int? maxFilesPerMessage,
int? maxFileSize,
List<String>? allowedFileTypes,
Widget Function(BuildContext, VoidCallback)? customVoiceButtonBuilder,
}) =>
VoiceOptions(
enabled: enabled ?? this.enabled,
voiceIcon: voiceIcon ?? this.voiceIcon,
keyboardIcon: keyboardIcon ?? this.keyboardIcon,
voiceIconColor: voiceIconColor ?? this.voiceIconColor,
voiceIconSize: voiceIconSize ?? this.voiceIconSize,
tooltip: tooltip ?? this.tooltip,
onVoiceState: onVoiceState ?? this.onVoiceState,
maxFilesPerMessage: maxFilesPerMessage ?? this.maxFilesPerMessage,
maxFileSize: maxFileSize ?? this.maxFileSize,
allowedFileTypes: allowedFileTypes ?? this.allowedFileTypes,
);