keepAlive property

bool keepAlive
final

Keeps the video controller alive even when the widget is removed from the tree.

When true, the controller is not automatically disposed, allowing the video state (position, buffer, etc.) to persist across rebuilds or navigation.

⚠️ Use with caution — if you never call dispose() manually, this may lead to memory leaks or OutOfMemory errors.

Implementation

final bool keepAlive;