dispose method

  1. @override
void dispose()
override

Clear all fields when dispose. 销毁时重置所有内容

Implementation

@override
void dispose() {
  super.dispose();
  _isAssetsEmpty = false;
  _isSwitchingPath = false;
  _pathEntityList.clear();
  _currentPathEntity = null;
  _currentAssets.clear();
  _selectedAssets.clear();
  _mounted = false;
}