ifPattern

inline fun <T> BackgroundType.ifPattern(block: (BackgroundType.Pattern) -> T): T?