void initHistory(Stream<Command<M>> hStream)

stock les commands ( sauf CancelCommand )

Source

void initHistory(Stream<Command<M>> hStream) {
  hStream.where((c) => !(c is CancelCommand)).listen((c) => history.add(c));
}