Skip to main content

Lazy Properties

The Lazy type is used for deferred initialization of values, which is especially useful when computing or retrieving a field from an external source is resource-intensive or if it is not always necessary for the application.

Example of Using Lazy

Lazy properties are useful when you need to load data only on demand, rather than upfront. This enhances flexibility and optimizes resource use.

Object Context:include