unifiedContext property

Map<String, dynamic> get unifiedContext

Implementation

Map<String, dynamic> get unifiedContext {
  final ctx = <String, dynamic>{};

  if (this is Component) {
    final comp = this as Component;

    // 1) props defaults
    ctx.addAll(comp.propsRegistry);

    // 2) props recibidas crudas
    ctx.addAll(comp.propsData);

    // 3) props procesadas (sobrescriben las anteriores)
    ctx.addAll(comp.processedProps);

    // 4) states (tienen prioridad absoluta)
    ctx.addAll(comp.states);
  } else {
    // Para Renderable normal
    ctx.addAll(propsData);
  }

  return ctx;
}