copyWith method

ModernFormTextAndImageModel copyWith({
  1. String? text,
  2. String? description,
  3. String? imageUrl,
})

Implementation

ModernFormTextAndImageModel copyWith({
  String? text,
  String? description,
  String? imageUrl,
}) {
  return ModernFormTextAndImageModel(
    text: text ?? this.text,
    description: description ?? this.description,
    imageUrl: imageUrl ?? this.imageUrl,
  );
}