In stable release: 3.7

References

API documentation:

Material.of

Relevant PRs:

Add maybeOf for all the cases when of returns nullable

Add Overlay.maybeOf, make Overlay.of return a non-nullable instance