> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dart Hide Combinator

The `hide` combinator is a namespace-control modifier applied to `import` or `export` directives in Dart. It acts as an exclusion filter, preventing specific top-level identifiers from a target library from being introduced into the current library's namespace, while allowing all other public identifiers to be resolved.

## Syntax

The combinator is appended to the end of an `import` or `export` statement, followed by a comma-separated list of the identifiers to be excluded.

```dart theme={"dark"}
// Import all public members except ClassA and topLevelFunction
import 'package:example/example.dart' hide ClassA, topLevelFunction;

// Re-export all public members except InternalMixin
export 'package:example/example.dart' hide InternalMixin;
```

## Mechanics and Behavior

* **Target Scope:** The `hide` combinator strictly operates on top-level declarations (e.g., `class`, `mixin`, `typedef`, top-level variables, and top-level functions). It cannot be used to filter out specific instance members, static methods, or properties encapsulated *within* a class.
* **Namespace Resolution:** When the Dart analyzer processes a directive with `hide`, it constructs the symbol table for the imported/exported library but explicitly drops the symbols listed in the `hide` clause. Attempting to reference a hidden identifier results in a compile-time `Undefined name` error, exactly as if the target library did not contain that declaration.
* **Export Propagation:** When applied to an `export` directive, `hide` prevents the specified identifiers from being re-exported. This modifies the public API surface of the aggregating library by omitting the hidden symbols from the exported namespace.
* **Combinator Chaining:** Dart allows multiple combinators (`show` and `hide`) to be chained on a single directive. When chained, the Dart compiler evaluates them sequentially from left to right.

```dart theme={"dark"}
// Evaluates left-to-right: 
// 1. Shows only ClassA, ClassB, and ClassC
// 2. Hides ClassC from that filtered subset
import 'package:example/example.dart' show ClassA, ClassB, ClassC hide ClassC;
```

<div
  style={{ 
display: "flex", 
justifyContent: "space-between", 
alignItems: "center", 
maxWidth: "754px", 
padding: "1rem 0",
marginBottom: "24px"
}}
>
  <span style={{ fontWeight: "bold", fontSize: "1.25rem", color: "var(--tw-prose-headings)", fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" }}>Tired of Poor Dart Skills? Fix That With Deep Grasping!</span>

  <a
    href="https://syntblaze.com"
    target="_blank"
    style={{ 
  marginLeft: "24px",
  textDecoration: "none", 
  backgroundColor: "#007AFF",
  color: "#ffffff", 
  padding: "6px 16px", 
  borderRadius: "16px",
  fontSize: "0.9rem",
  fontWeight: "600",
  textAlign: "center",
  transition: "background-color 0.2s ease"
}}
  >
    Learn More
  </a>
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/skill-tracking.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=b9b0305c93bb501c9e767b5c76c88835" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/skill-tracking.png" />

  <img src="https://mintcdn.com/syntblazellc/23tyuOzaWS88qFlc/images/nuggets.png?fit=max&auto=format&n=23tyuOzaWS88qFlc&q=85&s=c86c80197299762989e9b882419b2109" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/nuggets.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/bite-sized-exercises.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=a65f9a38c37ff28ab73ed783c53c60e3" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/bite-sized-exercises.png" />
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap", marginTop: "12px" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/mastery-chain.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=748a1763454713e679260fbb95f154a2" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/mastery-chain.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-previews.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=242f61448ff5dd6deaaab2dccc13b507" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-previews.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-explanations.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=cf0fc1c31f9cd0fc26716781be05fbc9" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-explanations.png" />
</div>
