Skip to content
pubscout

sealed_currencies

3.4.1, released 5 weeks ago by tsin.is

Provides data for world currencies in the form of sealed classes.

WASM-ready
$ flutter pub add sealed_currencies
Source repository

What it does

Provides information about world currencies in the form of compile-time, tree-shakable constant classes with a sealed origin. It contains ISO 4217 codes, numeric codes, English and native names, units, subunits, and currency name translations.

AI-written summary of version 3.4.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need comprehensive ISO 4217 currency data with built-in translations.
  • You want compile-time constant, tree-shakable currency definitions.

Skip it when

  • You need real-time currency exchange rates or financial conversion APIs.
  • You need Flutter-ready widgets like currency pickers (use world_countries instead).

Strengths

  • Sealed class hierarchy guarantees exhaustive pattern matching and compile-time safety.
  • No third-party dependencies.
  • Extensive translation support and high code coverage.

Weaknesses

  • Does not include live currency exchange rates or conversion APIs.

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
2

not documented

import 'package:sealed_currencies/sealed_currencies.dart';

final serbianDinar = FiatCurrency.fromCode("Rsd");
print(serbianDinar.name);

Alternatives

Packages that do the same job and could replace sealed_currencies.

Works with

Packages commonly used together with sealed_currencies: ones it builds on, ones built on it, and its own family.