persistentState property
String
get
persistentState
get actual encoded layout params in string format. Persist this data to use in initial restore
Implementation
String get persistentState {
return jsonEncode({
'leftSize': _leftPaneSize,
'leftTopSize': _leftTopPaneSize,
'topSize': _topPaneSize,
'topLeftSize': _topLeftPaneSize,
'rightSize': _rightPaneSize,
'rightTopSize': _rightTopPaneSize,
'bottomSize': _bottomPaneSize,
'bottomLeftSize': _bottomLeftPaneSize,
'leftTopPane': _leftTopPaneTools.map((e) => e.id,).toList(),
'leftBottomPane': _leftBottomPaneTools.map((e) => e.id,).toList(),
'topLeftPane': _topLeftPaneTools.map((e) => e.id,).toList(),
'topRightPane': _topRightPaneTools.map((e) => e.id,).toList(),
'rightTopPane': _rightTopPaneTools.map((e) => e.id,).toList(),
'rightBottomPane': _rightBottomPaneTools.map((e) => e.id,).toList(),
'bottomLeftPane': _bottomLeftPaneTools.map((e) => e.id,).toList(),
'bottomRightPane': _bottomRightPaneTools.map((e) => e.id,).toList(),
'leftTopPaneIndex': _leftTopPaneToolsIndex,
'leftBottomPaneIndex': _leftBottomPaneToolsIndex,
'topLeftPaneIndex': _topLeftPaneToolsIndex,
'topRightPaneIndex': _topRightPaneToolsIndex,
'rightTopPaneIndex': _rightTopPaneToolsIndex,
'rightBottomPaneIndex': _rightBottomPaneToolsIndex,
'bottomLeftPaneIndex': _bottomLeftPaneToolsIndex,
'bottomRightPaneIndex': _bottomRightPaneToolsIndex,
});
}