copyWith method

Avatar copyWith({
  1. String? fileName,
  2. String? id,
  3. bool? isDeletable,
  4. bool? isSelected,
  5. bool? isSystemAvatar,
  6. String? owner,
  7. Map<String, dynamic>? urls,
})

Implementation

Avatar copyWith(
    {String? fileName,
    String? id,
    bool? isDeletable,
    bool? isSelected,
    bool? isSystemAvatar,
    String? owner,
    Map<String, dynamic>? urls}) {
  return Avatar(
    fileName: fileName ?? this.fileName,
    id: id ?? this.id,
    isDeletable: isDeletable ?? this.isDeletable,
    isSelected: isSelected ?? this.isSelected,
    isSystemAvatar: isSystemAvatar ?? this.isSystemAvatar,
    owner: owner ?? this.owner,
    urls: urls ?? this.urls,
  );
}