PhotoLikeState.inProgress constructor Null safety

const PhotoLikeState.inProgress(
  1. {required bool like}
)

Creates loading cubit state for liking a photo.

Contains true if photo is being liked and false if unliked.

Implementation

const factory PhotoLikeState.inProgress({required bool like}) =
    _PhotoLikeInProgressState;