Created
February 2, 2021 07:14
-
-
Save EmmanuelGuther/d2b540da3532dc90b679f7f7e3bed730 to your computer and use it in GitHub Desktop.
Data class more clean with extensions
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
data class Result( | |
val requestCode: Int, | |
val data: Intent?, | |
) | |
val Result.isOk: Boolean | |
get() = resultCode == Activity.RESULT_OK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment