# Meta Veri (Metadata)

Metadata, kodunuz hakkında ek bilgiler vermek için kullanılır. Bir metadata açıklaması, derleme zamanı sabiti bir referansla başlar (@deprecated gibi) veya bir sabit yapılandırıcısına bir çağrıyla devam eder.

Dört metadata anotasyonu Dart dilinde genel olarak kullanılabilir: @Deprecated, @deprecated, @override ve @pragma. @override kullanımı için örnekler için bir sınıfı genişletme konusuna bakın. İşte @Deprecated anotasyonunun kullanımına dair bir örnek:

```dart
class Televizyon {
  /// Gücü açmak için [turnOn] kullanın.
  @Deprecated('turnOn kullanın')
  void etkinlestir() {
    turnOn();
  }

  /// Televizyonun gücünü açar.
  void turnOn() {...}
  // ···
}
```

@deprecated kullanmak istemiyorsanız bir mesaj belirtmek zorunda değilsiniz. Ancak, her zaman @Deprecated ile bir mesaj belirtmenizi öneririz.

Kendi metadata anotasyonlarınızı tanımlayabilirsiniz. İşte iki argüman alan @Todo anotasyonunu tanımlayan bir örnek:

```dart
class Todo {
  final String kim;
  final String ne;

  const Todo(this.kim, this.ne);
}
```

Ve işte bu @Todo anotasyonunu kullanmanın bir örneği:

```dart
@Todo('Dash', 'Bu fonksiyonu implement et')
void birSeyYap() {
  print('Bir şey yap');
}
```

Metadata, bir kütüphane, sınıf, typedef, tür parametresi, constructor, factory, fonksiyon, alan, parametre veya değişken bildirimi ve bir import veya export direktifi öncesinde görünebilir.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dart.bayramalacam.com/sozdizimi-temelleri-syntax-basics/meta-veri-metadata.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
