SlotRule class

Defines a specific rule for building a slot, consisting of a condition and a builder.

Annotations

Constructors

SlotRule({required bool condition(ActiveLayoutInfo), required Widget? builder(ActiveLayoutInfo)})
const

Properties

builder Widget? Function(ActiveLayoutInfo)
The function that builds the widget for this slot if the condition is met.
final
condition bool Function(ActiveLayoutInfo)
The condition under which this rule's builder should be used.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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