copyWith method

BlocEventType<T> copyWith({
  1. String? eventName,
  2. bool? userInitiated,
})

Creates a new copy of this event type with the specified values.

Implementation

BlocEventType<T> copyWith({String? eventName, bool? userInitiated}) {
  return BlocEventType(
    eventName ?? this.eventName,
    userInitiated: userInitiated ?? this.userInitiated,
  );
}