copyWith method
Copy constructor
Implementation
EntityImpl<T> copyWith({ T? data, EntityValidator? validator }) {
return EntityImpl(
data ?? this.data,
validator ?? this.validator
);
}
Copy constructor
EntityImpl<T> copyWith({ T? data, EntityValidator? validator }) {
return EntityImpl(
data ?? this.data,
validator ?? this.validator
);
}