void copyArray(Map<int, dynamic> a, b) { final l = b.length; a.clear(); for (int i = 0; i < l; i++) { a[i] = b[i]; } }