keepAlive property

bool keepAlive
final

Flag to enable the built in keep alive functionality

If the map is within a complex layout, such as a ListView or PageView, the map will reset to it's inital position after it appears back into view. To ensure this doesn't happen, enable this flag to prevent the FlutterMap widget from rebuilding.

Implementation

final bool keepAlive;