persian 0.1.6-nullsafety copy "persian: ^0.1.6-nullsafety" to clipboard
persian: ^0.1.6-nullsafety copied to clipboard

outdated

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.

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 صد و بیست و سه میلیون و چهارصد و پنجاه و شش هزار و هفتصد و هشتاد و نه
43
likes
0
points
202
downloads

Publisher

verified publisherpwa.ir

Weekly Downloads

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

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on persian