getPropertyValueOrNull

Gets the value of the given property of the current block state or null if the current block state does not have the given property.