copyWith method
VInputTheme
copyWith({
- BoxDecoration? containerDecoration,
- InputDecoration? textFieldDecoration,
- Widget? cameraIcon,
- Widget? fileIcon,
- Widget? emojiIcon,
- Widget? recordBtn,
- Widget? sendBtn,
- Widget? trashIcon,
- TextStyle? textFieldTextStyle,
override
Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.
Implementation
@override
VInputTheme copyWith({
BoxDecoration? containerDecoration,
InputDecoration? textFieldDecoration,
Widget? cameraIcon,
Widget? fileIcon,
Widget? emojiIcon,
Widget? recordBtn,
Widget? sendBtn,
Widget? trashIcon,
TextStyle? textFieldTextStyle,
}) {
return VInputTheme._(
containerDecoration: containerDecoration ?? this.containerDecoration,
textFieldDecoration: textFieldDecoration ?? this.textFieldDecoration,
cameraIcon: cameraIcon ?? this.cameraIcon,
fileIcon: fileIcon ?? this.fileIcon,
trashIcon: trashIcon ?? this.trashIcon,
emojiIcon: emojiIcon ?? this.emojiIcon,
recordBtn: recordBtn ?? this.recordBtn,
sendBtn: sendBtn ?? this.sendBtn,
textFieldTextStyle: textFieldTextStyle ?? this.textFieldTextStyle,
);
}