Sudhir Singh Khanger
private val
class MainViewModel @Inject constructor(movieRepository: MovieRepository) : ViewModel() { val movieList: LiveData<List<MovieEntry>> = movieRepository.getMovies() }
Constructor parameters must use var or val when they are used as a property elsewhere in the class.
as a property
A modern programming language that makes developers happier.