how to get the size of the map in flutter code example Example: get length of map flutter var itemsLength = data.values.elementAt(index);