optional function

String optional(
  1. dynamic re
)

Implementation

String optional(dynamic re) {
  return concat('(?:', re, ')?');
}