“Dart Destrutor” Respostas de código

Dart Destrutor

there is no such. There is nothing like a destructor in Dart. 
JS garbage collector doesn't provide a way to implement this. 
Adorable Alpaca

Dart Destrutor

Dart does not have destructors. 
Objects are automatically garbage collected when no longer referenced

In flutter we can do like for widget dispose:

@override
void dispose() {
	// your dispose part
	super.dispose();
}
Vel

Respostas semelhantes a “Dart Destrutor”

Perguntas semelhantes a “Dart Destrutor”

Procure respostas de código populares por idioma

Procurar outros idiomas de código