skip to Main Content

Flutter: RangeError

I'm trying to add task to list folderTask. The list looks like this: List<FolderTask> folderTask = []; List<Task> task = []; folderTask = [FolderTask(name: 'Personal', task: task)]; And it return RangeError. The method that I use to add the item…

VIEW QUESTION

Kotlin coroutine with firebase functions

I was having a problem implementing the Firebase anonymous sign-in function with Kotlin coroutine. Following is the code for that: Repository.kt suspend fun getUserId(){ firebaseHelper.getUserId().collect{ if (it == "Successful"){ emit(it) } else { emit("Task unsuccessful") } } } FirebaseHelper.kt fun…

VIEW QUESTION
Back To Top
Search