Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter How to dispose subscription

class EventNotifier extends ValueNotifier<List<String>> {
  // Omitted

  @override
  void dispose() {
    streamSub.cancel();
    super.dispose();
  }
}
 
PREVIOUS NEXT
Tagged: #flutter #How #dispose #subscription
ADD COMMENT
Topic
Name
7+7 =