v2.8.0 of sealed_countries

2025-10-28T18:07:28.737639Z

2.8.0 was published on Oct 28, 2025.

Changelog excerpt:
NEW FEATURES

- This version introduces named (Dart 3.10 dot-shorthand compatible) constructors for ISO classes, refactoring the ISO data files to use a factory constructor pattern with extension types. The changes transform the direct constructor calls into a more structured factory-based approach while maintaining backward compatibility. For example, instead of using `CountrySvk()`, you can now use `WorldCountry.svk()`. This change enhances code readability and aligns with modern Dart practices.

```
`const country = CountrySvk(); // Old way (still supported). const country = WorldCountry.svk(); // New way, or just .svk() in Dart 3.10. print([WorldCountry.svk(), WorldCountry.cze()]); // Collections, 3.9 way. // You can also use the new dot-shorthand syntax introduced in Dart 3.10: print(<WorldCountry>[.svk(), .cze()]); // Collections, 3.10 way.````
CHORE

- Bulgarian `currencies`array updated to reflect current usage of both BGN and EUR in Bulgaria.