preserveState property
bool
get
preserveState
Whether Flint should preserve this component instance across parent rerenders when the runtime type and tree position match.
Components are replaced by default when their parent rebuilds so constructor values always stay fresh. A component still keeps its local fields when it calls setState itself, because that rerenders the same mounted instance directly.
Override this to true only for child components that must survive parent
rerenders. Preserved components that also receive constructor values must
override updateFrom to copy those values from the next instance.
Implementation
bool get preserveState => false;