slot_building_rules library

Classes

ConditionalSlotBuilder
A slot builder that conditionally returns one of two builders based on a predicate.
DeclarativeSlotBuilder
A declarative slot builder that uses a list of LayoutMatchConfigs.
LayoutMatchConfig
Configuration for matching layout conditions.
SimpleSlotBuilder
A slot builder that uses a single function to build the widget. This is for simple slots without complex conditional logic.
SlotBuilderType
Abstract base class for different types of slot builders. This allows AdaptiveLayoutWidget to handle both simple function-based builders and more complex rule-based builders.
SlotRule
Defines a specific rule for building a slot, consisting of a condition and a builder.
StaticSlotBuilder
A simple slot builder that always returns the same widget. This is useful for static content that doesn't change based on layout conditions.