CustomScrollView.
When the sliver is not visible, it can either be completely removed from the
scroll layout or replaced with another sliver, depending on the configuration.
To know more about the SliverVisibility widget in Flutter, refer to
the official documentation.
Properties
| Property | Type | Description |
|---|---|---|
| sliver | Map<String, dynamic> | The sliver widget whose visibility is controlled. |
| replacementSliver | Map<String, dynamic>? | The sliver to display when visible is false. Defaults to an empty sliver. |
| visible | bool | Whether the sliver is visible. Defaults to true. |
| maintainState | bool | Whether to maintain the state of the sliver when hidden. |
| maintainAnimation | bool | Whether to maintain animations when the sliver is hidden. |
| maintainSize | bool | Whether to maintain layout space when the sliver is hidden. |
| maintainSemantics | bool | Whether to maintain semantics when the sliver is hidden. |
| maintainInteractivity | bool | Whether to maintain interactivity when the sliver is hidden. |