feat: suite de tiendas, sync reactivo, bitácora de errores y alertas whatsapp
This commit is contained in:
@@ -32,4 +32,23 @@ class Vendedor {
|
||||
zona: m['zona'] as String? ?? '',
|
||||
avatarInitials: m['avatar_initials'] as String? ?? '',
|
||||
);
|
||||
|
||||
// Permite crear una copia modificada del vendedor (ej. al actualizar teléfono de WhatsApp)
|
||||
Vendedor copyWith({
|
||||
String? id,
|
||||
String? nombre,
|
||||
String? email,
|
||||
String? telefono,
|
||||
String? zona,
|
||||
String? avatarInitials,
|
||||
}) {
|
||||
return Vendedor(
|
||||
id: id ?? this.id,
|
||||
nombre: nombre ?? this.nombre,
|
||||
email: email ?? this.email,
|
||||
telefono: telefono ?? this.telefono,
|
||||
zona: zona ?? this.zona,
|
||||
avatarInitials: avatarInitials ?? this.avatarInitials,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user