Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart destructor

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();
}
 
PREVIOUS NEXT
Tagged: #dart #destructor
ADD COMMENT
Topic
Name
4+5 =