blockElementMatcher function

CustomRenderMatcher blockElementMatcher()

Implementation

CustomRenderMatcher blockElementMatcher() => (context) {
      final check1 = context.tree.style.display == Display.inlineBlock;
      final check2 = context.tree.style.display == Display.block;
      final check4 = context.tree.element?.localName == "hr";
      final check3 = context.tree.children.isNotEmpty;
      return (check1 || check2) && (check3 || check4);
    };