copyWith method

EntityImpl<T> copyWith({
  1. T? data,
  2. EntityValidator? validator,
})

Copy constructor

Implementation

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