how can i create a random order of items in a listviewbuilder?

• Make your class Stateful

• Call initState method before build method like this:

  void initState() {
    messages.shuffle();
    super.initState();
  }

• keep your listView.Builder as it is.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top