samples property

Iterable<CodeSample> samples

The list of samples available in all of the elements in the file.

Implementation

Iterable<CodeSample> get samples {
  return _elements
          ?.expand<CodeSample>((SourceElement element) => element.samples) ??
      const <CodeSample>[];
}