MatchDecorator property extend

When use MatchDecorator,sometimes it cannot have an available RegExp to use,can MatchDecorator support property something like a function which return a bool value,when the return value is true,then render widget?

Hi @marijn, can this work ?

Use the decorate option and don’t call its add argument when no decoration should be added.