Section class Null safety

A section is a set of labels, grouped together to to make them easier to find.

Inheritance
Implementers

Constructors

Section({required String key, required List<Label> labels, required List<Section> children})
const
Section.merge(Section value, Section other)
Merges value and other into a new Section with combined labels and merged children.
factory

Properties

allLabels List<Label>
read-only
categories List<Category>
All categories declared in all label cases conditions.
read-only
children List<Section>
final
hashCode int
The hash code for this object. [...]
read-only, inherited
hasTemplatedValues bool
read-only
key String
final
labels List<Label>
final
normalizedKey String
read-only
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props. [...]
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
withTranslations(String path, String? condition, List<Translation> translations) Section
A new section with the translation inserted at path.

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited