Translation constructor

Translation({
  1. required String name,
  2. required String path,
})

Constructs a SupportedTranslation with specified name and path.

This constructor requires all parameters to be provided and ensures that each translation is fully specified before use. Both parameters are marked as required, indicating that a SupportedTranslation cannot be created without them.

name specifies the identifier for the translation, and path provides the location of the translation data within the filesystem or project structure.

Implementation

Translation({required this.name, required this.path});