ref method

String ref({
  1. String? openRef,
  2. String? closeRef,
  3. required TBodyType bodyType,
})

Implementation

String ref({
  String? openRef,
  String? closeRef,
  required TBodyType bodyType,
}) =>
    '${openRef ?? TRefType.curlyBraces.openDouble}'
    ' ${switch (bodyType) {
      TBodyType.md => name,
      TBodyType.xml => xmlKey,
      TBodyType.yaml => yamlKey,
      TBodyType.json => jsonKey,
    }} '
    '${closeRef ?? TRefType.curlyBraces.closeDouble}';