persian 1.1.1
persian: ^1.1.1 copied to clipboard

Utilities for Persian language/culture. Includes some String extensions and PersianDate class.

persian #

pub package

Implements helper functions/extensions for Persian language/culture. Includes number replacement methods for String class and PersianDate class.

This package is a Dart package, which can be used in both Flutter and Dart projects.

Getting Started #

Import the package

import 'package:persian/persian.dart';

Use the extension methods

String myText = '123456789';
String myPersianText = myText.withPersianNumbers(); //Will be ۱۲۳۴۵۶۷۸۹
DateTime myDate = DateTime.now();
PersianDate myPersianDate = myDate.toPersian(); //Will be 1398/10/19
int number = 123456789;
String myPersianNumber = number.toPersianString(); //Will be صد و بیست و سه میلیون و چهارصد و پنجاه و شش هزار و هفتصد و هشتاد و نه
17
likes
130
pub points
79%
popularity

Publisher

pwa.ir

Utilities for Persian language/culture. Includes some String extensions and PersianDate class.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on persian