Full routing key: baseState when id is null, otherwise "${baseState}_$id".
baseState
"${baseState}_$id"
String? get stateKey { if (baseState == null) return null; return id == null ? baseState : "${baseState}_$id"; }