fetchEntityName abstract method

Future<String?> fetchEntityName(
  1. String entityType,
  2. String id, {
  3. Map<String, String>? context,
})

Fetch an entity name from the data source

Subclasses must implement this to perform the actual lookup (e.g., API call, database query, etc.)

entityType - The type of entity to resolve id - The entity's unique identifier context - Optional context map with additional information

Returns the entity's display name, or null if not found/supported

Implementation

Future<String?> fetchEntityName(
  String entityType,
  String id, {
  Map<String, String>? context,
});