initMixin method

void initMixin()

Implementation

void initMixin() {
  _sub = loadingStream
      .where((event) => !event)
      .where((e) => queue.isNotEmpty)
      .listen((event) {
    var fn = queue.removeAt(0);
    fn.call();
  });
}