void () { final String text = "this is a long text to fold more"; init(12, text); int start = text.indexOf("long"); int end = text.indexOf("more"); addCollapsedFoldRegion(start, end, "placeholder which is long enough to be wrapped"); checkSoftWraps(start, end); }