dispose method
Releases the resources allocated for this model.
Implementation
@override
Future<void> dispose() async {
final conversation = _activeConversation;
_activeConversation = null;
if (conversation != null) {
final result = conversation.deleteConversation();
if (result != null) {
await result.toDart;
}
}
final deleteResult = _jsEngine.deleteEngine();
if (deleteResult != null) {
await deleteResult.toDart;
}
}