String? tryGetKey(int index, T item) { try { return _keyGenerator(item); } catch (e) { return "$index"; } }