AtContact constructor

AtContact({
  1. ContactType? type,
  2. String? atSign,
  3. List<ContactCategory>? categories,
  4. bool? favourite,
  5. bool? blocked,
  6. List<String>? personas,
  7. Map? tags,
  8. String? clazz,
  9. int? version,
  10. DateTime? createdOn,
  11. DateTime? updatedOn,
})

Implementation

AtContact(
    {this.type,
    this.atSign,
    this.categories,
    this.favourite,
    this.blocked,
    this.personas,
    this.tags,
    this.clazz,
    this.version,
    this.createdOn,
    this.updatedOn}) {
  // atSign ??='@atSign';
  type ??= ContactType.Individual;
  categories ??= [ContactCategory.Other];
  favourite ??= false;
  blocked ??= false;
  clazz ??= 'com.atSign.AtContact';
  version ??= 1;
  createdOn ??= DateTime.now();
  updatedOn ??= DateTime.now();
}