Client.forContact constructor

Client.forContact({
  1. String firstName = '',
  2. String lastName = '',
  3. String email = '',
  4. String phone = '',
})

Create a client using contact details

Implementation

factory Client.forContact({
  String firstName = '',
  String lastName = '',
  String email = '',
  String phone = '',
}) {
  return Client(contacts: [
    ClientContact(
      firstName: firstName,
      lastName: lastName,
      email: email,
      phone: phone,
    )
  ]);
}