slots property

List<String> get slots

The names of its slots in body order ('' the default slot).

Implementation

List<String> get slots {
  final block = inAtBlock([for (final l in body) l.indent], [for (final l in body) l.text]);
  return [
    for (var i = 0; i < body.length; i++)
      if (!block[i] && body[i].text.startsWith('...')) slotOf(body[i].text).name,
  ];
}