maintainKey property

bool? maintainKey
final

Whether to maintain a key for the child widget during switching.

Defaults to true to preserve state across transitions. Setting this to false can improve performance but might cause issues if state needs to be maintained between child widgets.

Implementation

final bool? maintainKey;