int length(Map map)

Source

static int length(Map map) => map.keys.length;