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