removeState method
Xóa state và dispose nếu tồn tại
Implementation
void removeState(String key) {
print('======== delete');
final state = _states.remove(key);
state?.dispose(); // Dispose state khi xóa
}
Xóa state và dispose nếu tồn tại
void removeState(String key) {
print('======== delete');
final state = _states.remove(key);
state?.dispose(); // Dispose state khi xóa
}