SHARE
TWEET

Untitled

a guest Jul 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class BasePresenter<T extends State> {
  2.   T state;
  3.  
  4.   final api = ApiRepository.instance;
  5.   final pref = LocalRepository.instance;
  6.   Database db = DBProvider.db.database;
  7.  
  8.   BasePresenter(this.state);
  9.   setState(VoidCallback callback){
  10.     // ignore: invalid_use_of_protected_member
  11.     state.setState(callback);
  12.   }
  13. }
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