copyWith method

UniqueUser copyWith({
  1. Object? id = _copyWithSentinel,
  2. Object? email = _copyWithSentinel,
  3. Object? active = _copyWithSentinel,
})

Implementation

UniqueUser copyWith({
  Object? id = _copyWithSentinel,
  Object? email = _copyWithSentinel,
  Object? active = _copyWithSentinel,
}) {
  return UniqueUser(
    id: identical(id, _copyWithSentinel) ? this.id : id as int,
    email: identical(email, _copyWithSentinel) ? this.email : email as String,
    active: identical(active, _copyWithSentinel)
        ? this.active
        : active as bool,
  );
}