kristofdho
09/19/2018, 5:41 AMclass MainViewModel @Inject constructor(private val movieRepository: MovieRepository) : ViewModel() {
val movies: LiveData<List<MovieEntry>> = movieRepository.getMovies()
}
1️⃣ only makes sense if the list was mutable and you needed to edit it internally, & the getter exposes an immutable list
3️⃣ you shouldn't put function declarations in init blocks