sub static method

String sub(
  1. String tag,
  2. String child, [
  3. int? index
])

A sub-tag, e.g. sub('palette', 'repair', 2) → 'palette/repair/2'.

Implementation

static String sub(String tag, String child, [int? index]) =>
    index == null ? '$tag/$child' : '$tag/$child/$index';