dispose method

  1. @override
void dispose()
override

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

Implementation

@override
void dispose() {
  _isAssetsEmpty = false;
  _paths.clear();
  _currentPath = null;
  _currentAssets.clear();
  super.dispose();
}