# Dart · Dartdoc

Real dart doc output from the checked-in dart fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.

> Source: https://appgram.github.io/docsy/versions/current/es/dart-sdk  
> Language: dart  
> Symbols: 7 across 5 categories

## Categories

- [Constructors](#constructors) — 1 items
- [Methods](#methods) — 3 items
- [Properties](#properties) — 1 items
- [Classes](#classes) — 1 items
- [Enums](#enums) — 1 items

## Constructors

### `Greeter`  <sub>constructor</sub>

```dart
Greeter()
```

## Methods

### `greet`  <sub>method</sub>

Greet the reader called name .

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ |  |

**Returns** — `String`

```dart
String greet( String name )
```

**Example**

```dart
Greeter().greet('Ada');
```

---

### `greetChecked`  <sub>method</sub>

Reject an empty name . Throws ArgumentError when name is empty.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ |  |

**Returns** — `String`

```dart
String greetChecked( String name )
```

---

### `greetMany`  <sub>method</sub>

Greet several readers while preserving input order.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `List<String>` | ✓ |  |

| `separator` | `String` |  |  |

**Returns** — `String`

```dart
String greetMany( List<String> names, { String separator = ' / ', })
```

**Example**

```dart
Greeter().greetMany(['Ada', 'Linus'], separator: ' / ');
```

## Properties

### `prefix`  <sub>property</sub>

Greeting prefix used for future calls.

**Returns** — `String`

```dart
String prefix getter/setter pair
```

## Classes

### `Greeter`  <sub>class</sub>

Build personalized greetings without network access.

```dart
()
```

**Example**

```dart
final greeter = Greeter();
print(greeter.greet('Docsy'));
```

## Enums

### `Mood`  <sub>enum</sub>

Supported greeting moods.

**Values** — `friendly`, `formal`

```dart
enum Mood
```
