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 MeBloc extends Bloc { StreamSubscription _audioPlayerStateSubscription; Stream get example => _exampleSubject.stream; Sink get exampleSink => _exampleSubject.sink; final StreamController _exampleSubject = StreamController(); MeBloc(); void dispose() { _exampleSubject.close(); } }