source function

String? source(
  1. dynamic re
)

Implementation

String? source(dynamic re) {
  if (re == null || re == false) return null;
  if (re is String) return re;
  if (re is RegExp) return re.pattern;
  return re.toString();
}