flattenComponents() {
    const result = {};

    this.everyComponent((component) => {
      result[component.component.flattenAs || component.key] = component;
    });

    return result;
  }
Get the flattened components of this NestedComponent.
@returns {object} - The flattened components of this NestedComponent.