normalizeKey static method

String normalizeKey(
  1. List key
)

Converts a structured key list into a normalized, canonical string key.

Maps and Iterables within the key are recursively normalized and sorted to guarantee identical canonical string representations regardless of map key insertion order.

final keyStr = BloomData.normalizeKey(['tasks', {'status': 'done', 'page': 1}]);
// Produces: "tasks:{page: 1, status: done}"

Implementation

static String normalizeKey(List<dynamic> key) => key.map(_canonical).join(':');