SHARE
TWEET

Untitled

a guest Aug 23rd, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Widget _buildList(AsyncSnapShot snapshot){
  2. List<Request> requests = snapshot.data.documents.map((doc) => Request.fromJson(doc)).reversed.toList();
  3. return ListView.builder(
  4.    padding: EdgeInsets.all(20.0),
  5.    itemCount: requests.length,
  6.    itemBuilder: (buildContext, index) {
  7.    return ...
  8. },
  9. );
  10. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top