mirrored_repositories/Numbers-Flutter-Game/lib
import 'dart:async';
class BlockDataStream {

  void setCount({int index, int value}){
    _controller.sink.add({"index": index, "value": value});
  }

  final _controller = StreamController<Map<String, int>>();

  void dispose(){
    _controller.close();
  }

  Stream<Map<String, int>> get stream => _controller.stream;
}
