Dart SSE handle Help Please

Hello friends, have a problem with SSE dart.
Use Library, fetch_api or sse_client for get event of server
Use web chrome with devtools, i see, that EventStream handle stream but, i dont recieve in Debug Console and dont’t handle any event.

import 'package:flutter_client_sse/flutter_client_sse.dart';
`void main() {
 
 var handler = {

   'play': (event) {
     print('Event: ' + event.event!);
     print('Data: ' + event.data!);
   },

   'stop': (event) {
     print("Stop");
   },

   'other': (event) {
     print("Other");
   },
 };

 ///GET REQUEST
 SSEClient.subscribeToSSE(
     method: SSERequestType.GET,
     url: 'http://10.99.12.213:8000/stream',
     header: {
       // "Cookie":'jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6InRlc3QiLCJpYXQiOjE2NDMyMTAyMzEsImV4cCI6MTY0MzgxNTAzMX0.U0aCAM2fKE1OVnGFbgAU_UVBvNwOMMquvPY8QaLD138; Path=/; Expires=Wed, 02 Feb 2022 15:17:11 GMT; HttpOnly; SameSite=Strict',
       "Accept": "text/event-stream",
       // "Cache-Control": "no-cache",
     }).listen(
 /// Example:
 /// ```dart
 /// final stream =
 ///     Stream<int>.periodic(const Duration(seconds: 1), (count) => count)
 ///         .take(10);
 ///
 /// final customStream = stream.where((event) => event > 3 && event <= 6);
 /// customStream.listen(print); // Outputs event values: 4,5,6.
 /// ```
// Логика для обработки Контроллера GETX
// GetX event type == см => Readme

   (event) {
     print(event!);
     print('id:' + event.id!);
     print('Event: ' + event.event!);
     print('Data: ' + event.data!);
   },
 );
}
`

Welcome to the forum!

The code you have provided is a bit confusing:
Can you please clean it up, so that we can see what’s the comment with the example and what is your actual code to debug? They are mixed up for now.

Thanks.