SHARE
TWEET

Untitled

a guest Apr 21st, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class Call {
  2.   String msg;
  3.   List<Function> endCallCallbacks = [];
  4.  
  5.   Call(this.msg);
  6.  
  7.   addEndCallback(Function callback) {
  8.     endCallCallbacks.add(callback);
  9.   }
  10.  
  11.   endCall() {
  12.     endCallCallbacks.forEach((f) => f());
  13.   }
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top