Check out example codes for "selecting a particular sublist in list in dart". It will help you in understanding the concepts better.

Code Example 1

import "dart:math";

var list = ['a','b','c','d','e'];

// generates a new Random object
final _random = new Random();

// generate a random index based on the list length
// and use it to retrieve the element
var element = list[_random.nextInt(list.length)];

Code Example 2

var randomItem = (list.toList()..shuffle()).first;

Learn ReactJs, React Native from akashmittal.com