Replace<C> class
final
Full replacement of a slot — default is ignored (intentional).
Use when you need complete control over the slot's rendering.
LSP: Contract build() is respected, but semantics = "full takeover".
Example
Replace((ctx) => MyCustomWidget(
isSelected: ctx.isSelected,
label: ctx.label,
))
- Inheritance
-
- Object
- SlotOverride<
C> - Replace
Properties
Methods
-
build(
C ctx, Widget defaults(C)) → Widget -
Build the slot widget.
override
-
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