PhotoLikeState.success constructor Null safety

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

Creates loading succeeded cubit state for liking a photo.

Contains true if photo was liked and false if it was unliked.

Implementation

const factory PhotoLikeState.success({required bool like}) =
    _PhotoLikeSuccessState;