optional

abstract fun optional(): Boolean

Checks whether this dependency is optional. Optional dependencies are not strictly required for the addon to function, and the addon can work without them if they are not available.

Return

true if the dependency is optional; false otherwise.