copyWith method

MessagesWithMetadata copyWith({
  1. List<MessageWithMetadata>? messages,
  2. String? locale,
  3. String? context,
  4. String? referencePath,
  5. String? hash,
  6. bool? hasMetadata,
  7. AssetId? assetId,
})

Implementation

MessagesWithMetadata copyWith({
  List<MessageWithMetadata>? messages,
  String? locale,
  String? context,
  String? referencePath,
  String? hash,
  bool? hasMetadata,
  AssetId? assetId,
}) {
  return MessagesWithMetadata(
    messages ?? this.messages,
    locale ?? this.locale,
    context ?? this.context,
    referencePath ?? this.referencePath,
    hash ?? this.hash,
    hasMetadata ?? this.hasMetadata,
    assetId ?? this.assetId,
  );
}