Skip to content

agnamc9/amount_formatter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An amount formatter.

Features

  • Format amount
  • Set separator character
  • Set currency

Installation

Add to pubspec.yaml

dependencies:
  amount_formatter: ^0.0.1

Usage

/// simple format
final amountFormatter = AmountFormatter();
amountFormatter.format('1000'); // 1 000

/// format with separator and currency
final amountFormatter = AmountFormatter(currency: 'FCFA', separator: ',');
amountFormatter.format('1000'); // 1,000 FCFA

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages