loadColumnState static method

Map<int, ColumnState>? loadColumnState({
  1. String? tableId,
})

Loads column state from the in-memory cache.

Returns the saved column state if available, or null if not found or if the session was reset.

Implementation

static Map<int, ColumnState>? loadColumnState({
  String? tableId,
}) {
  try {
    final key = _getStorageKey(tableId);
    return _memoryCache[key];
  } catch (e) {
    debugPrint('Error loading column state: $e');
    return null;
  }
}