onDispose method

  1. @override
Future<void> onDispose()
override

Implementation

@override
Future<void> onDispose() async {
  _messages.clear();
}