Created
March 1, 2020 20:07
-
-
Save lordcodes/9a00d91213357b25d27c1300b02dc598 to your computer and use it in GitHub Desktop.
Code for the article: "The power of lazy properties in Kotlin"
This file contains 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
class OrderDetailActivity : FragmentActivity() { | |
val orderId by lazy { | |
intent.getParcelableExtra<OrderId>(EXTRA_ORDER_ID) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment