copyWith abstract method

Message copyWith({
  1. String? timestamp,
  2. bool? isLoading,
  3. List<MessageElement>? elements,
  4. bool? isFailed,
  5. double? width,
})

Creates a copy of this message with updated properties.

This method supports the Immutable Object pattern by allowing state updates without modifying the original instance.

Implementation

Message copyWith({
  String? timestamp,
  bool? isLoading,
  List<MessageElement>? elements,
  bool? isFailed,
  double? width,
});