copyWith method

ImperativeState<T> copyWith({
  1. String? id,
  2. T? state,
})

Implementation

ImperativeState<T> copyWith({String? id, T? state}) {
  return ImperativeState(
    id: id ?? this.id,
    value: state ?? this.value,
  );
}