android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
552 stars 268 forks source link

Step 11. Problem with the customSortFlow #147

Open KreslavskiKD opened 3 years ago

KreslavskiKD commented 3 years ago

private val customSortFlow = plantsListSortOrderCache::getOrAwait.asFlow()

This line is being marked as an error in Android Studio with the following message: Variable 'plantsListSortOrderCache' must be initialized

Kotlin version is 1.5.10