Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dispose flutter

dispose method used to release the memory allocated to variables when 
state object is removed.

For example, if you are using a stream in your application then you 
have to release memory allocated to the stream controller. Otherwise,
your app may get a warning from the PlayStore and AppStore about memory 
leakage.
 
PREVIOUS NEXT
Tagged: #dispose #flutter
ADD COMMENT
Topic
Name
8+6 =