copyWith method
Implementation
SmsMessage copyWith({
String? id,
String? phoneNumber,
String? message,
DateTime? timestamp,
bool? isSent,
String? error,
}) {
return SmsMessage(
id: id ?? this.id,
phoneNumber: phoneNumber ?? this.phoneNumber,
message: message ?? this.message,
timestamp: timestamp ?? this.timestamp,
isSent: isSent ?? this.isSent,
error: error ?? this.error,
);
}