felangel / bloc

A predictable state management library that helps implement the BLoC design pattern
https://bloclibrary.dev
MIT License
11.53k stars 3.37k forks source link

refactor(flutter_todos): add `close` to `TodosApi` #4157

Closed felangel closed 2 months ago

felangel commented 2 months ago

Status

READY

Breaking Changes

NO

Description

Even though the lifetime of the TodosApi instance is tied to the application in this case, it's still valuable to add a close API to the interface since the TodosApi should expose a way to close the instance and free any allocated resources. (closes #4154)

Type of Change