Skip to content

Instantly share code, notes, and snippets.

@cleomarbrdias
cleomarbrdias / DART
Created July 19, 2019 14:01
PesquisaBloc
class PesquisasBloc implements BlocBase {
//declarando meu service API
Api api;
//instanciando uma lista para armazenar meus dados
List<Post> posts;
//criando controles de saida de saida
final StreamController<List<Post>> _postsController =
StreamController<List<Post>>();