mirrored_repositories/future_of_workout/lib/src/workout/workout_logs/workout_logs_details
part of 'workout_logs_details_bloc.dart';

enum WorkoutLogsDetailsStatus {
  initial,
  loading,
  loaded,
  updated,
  deleted,
  failure,
}

class WorkoutLogsDetailsState extends Equatable {
  const WorkoutLogsDetailsState({
    this.workoutLog,
    this.status = WorkoutLogsDetailsStatus.initial,
  });

  final WorkoutLogsDetailsStatus status;
  final WorkoutLog? workoutLog;

  @override
  List<Object?> get props => [status, workoutLog];

  WorkoutLogsDetailsState copyWith({
    WorkoutLogsDetailsStatus? status,
    WorkoutLog? workoutLog,
  }) {
    return WorkoutLogsDetailsState(
      status: status ?? this.status,
      workoutLog: workoutLog ?? this.workoutLog,
    );
  }
}
