fun <T> optional(initializer: M.() -> T?): Optional<M, T>
Creates and registers delegate for an optional (nullable) injectable property.
initializer
- Initializer function from the module context to value.
Return
Optional (nullable) property delegate.