maintainInteractivity property

bool maintainInteractivity
final

Whether to allow the sliver to be interactive when hidden.

To set this, maintainSize must also be set.

By default, with maintainInteractivity set to false, touch events cannot reach the sliver when it is hidden from the user. If this flag is set to true, then touch events will nonetheless be passed through.

Dynamically changing this value may cause the current state of the subtree to be lost (and a new instance of the subtree, with new State objects, to be immediately created if visible is true).

Implementation

final bool maintainInteractivity;