format 4.0.0 copy "format: ^4.0.0" to clipboard
format: ^4.0.0 copied to clipboard

Dart string formatting with Python-style braces and printf mini-languages.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add format

With Flutter:

 $ flutter pub add format

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  format: ^4.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:format/format.dart';
59
likes
160
points
40.6k
downloads

Documentation

API reference

Publisher

verified publisheryet-another.dev

Weekly Downloads

Dart string formatting with Python-style braces and printf mini-languages.

Repository (GitHub)
View/report issues

Topics

#string #formatting #printf #sprintf #interpolation

License

BSD-2-Clause (license)

Dependencies

characters

More

Packages that depend on format