copyWith method

ContactFolder copyWith({
  1. String? displayName,
  2. String? id,
  3. String? parentFolderId,
})

Doesn't support setting null values for the properties.

Implementation

ContactFolder copyWith({
  String? displayName,
  String? id,
  String? parentFolderId,
}) {
  return ContactFolder(
    displayName: displayName ?? this.displayName,
    id: id ?? this.id,
    parentFolderId: parentFolderId ?? this.parentFolderId,
  );
}