21 lines
		
	
	
		
			561 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			561 B
		
	
	
	
		
			Dart
		
	
	
	
	
	
| import 'dart:async';
 | |
| import 'dart:ui';
 | |
| import 'package:flutter/services.dart';
 | |
| import 'package:imagini/models/contact.dart';
 | |
| import 'package:flutter/material.dart';
 | |
| import 'package:imagini/bloc/bloc.dart';
 | |
| 
 | |
| class Example2Bloc extends Bloc {
 | |
|   StreamSubscription _audioPlayerStateSubscription;
 | |
| 
 | |
|   Stream<String> get example => _exampleSubject.stream;
 | |
|   Sink<String> get exampleSink => _exampleSubject.sink;
 | |
|   final StreamController<String> _exampleSubject = StreamController<String>();
 | |
| 
 | |
|   Example2Bloc();
 | |
| 
 | |
|   void dispose() {
 | |
|     _exampleSubject.close();  
 | |
|   }
 | |
| }
 |