Created
June 15, 2020 19:07
-
-
Save ookami-kb/a17e710e2bfe1fd9f15d1f8658e66cba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<Either<Exception, MessageThread>> _createThread() async { | |
final selectedEmployees = | |
_selectedEmployees.value.map((employee) => employee.id).toList(); | |
return data.createNewThread(_title.value, selectedEmployees).map((thread) { | |
repository.saveThread(thread); | |
return thread; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment