Skip to content

Instantly share code, notes, and snippets.

@gladimdim
Created April 11, 2019 08:39
Show Gist options
  • Select an option

  • Save gladimdim/323e44b4ac2f021e2300e3f2a83c5c02 to your computer and use it in GitHub Desktop.

Select an option

Save gladimdim/323e44b4ac2f021e2300e3f2a83c5c02 to your computer and use it in GitHub Desktop.
class Call {
String msg;
List<Function> endCallCallbacks = [];
Call(this.msg);
addEndCallback(Function callback) {
endCallCallbacks.add(callback);
}
endCall() {
endCallCallbacks.forEach((f) => f());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment