copyWith method

  1. @override
VInputTheme copyWith({
  1. BoxDecoration? containerDecoration,
  2. InputDecoration? textFieldDecoration,
  3. Widget? cameraIcon,
  4. Widget? fileIcon,
  5. Widget? emojiIcon,
  6. Widget? recordBtn,
  7. Widget? sendBtn,
  8. Widget? trashIcon,
  9. 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,
  );
}