Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.law4devs.eu/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Recitals are the preamble sections of EU regulations. They provide context, intent, and interpretive guidance for the articles that follow.

Methods

list()

Future<Page<Recital>> list(String frameworkSlug, {int? page, int? perPage})

get()

Future<Recital> get(String frameworkSlug, String recitalNumber)

iter()

Stream<Recital> iter(String frameworkSlug, {int perPage = 20})

Model

Recital

FieldTypeDescription
idintInternal ID
frameworkSlugStringParent framework
numberStringRecital number
titleString?Optional title
textStringFull text content
positionintOrdering position

Examples

List recitals

final page = await client.recitals.list('gdpr');
print('${page.meta.total} GDPR recitals');

Get a specific recital

final r1 = await client.recitals.get('gdpr', '1');
print(r1.text);

Auto-paginate all recitals

await for (final r in client.recitals.iter('nis2')) {
  print('Recital ${r.number}: ${r.text.substring(0, 80)}...');
}