Created
April 11, 2019 08:39
-
-
Save gladimdim/323e44b4ac2f021e2300e3f2a83c5c02 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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