textwrap 2.0.0 copy "textwrap: ^2.0.0" to clipboard
textwrap: ^2.0.0 copied to clipboard

Text wrapping and filling. It's a pure port of textwrap from Python.

example/example.dart

// ignore_for_file: avoid_print

import 'package:textwrap/textwrap.dart';

void main() {
  var text = "Hello there, how are you this fine day?  I'm glad to hear it!";
  // 'Hello there,'
  // 'how are you'
  // 'this fine'
  // "day?  I'm"
  // 'glad to hear'
  // 'it!'
  print(wrap(text, width: 12));
}
9
likes
160
pub points
77%
popularity

Publisher

unverified uploader

Text wrapping and filling. It's a pure port of textwrap from Python.

Repository (GitHub)
View/report issues

Topics

#text

Documentation

API reference

Funding

Consider supporting this project:

www.buymeacoffee.com

License

MIT (license)

Dependencies

meta

More

Packages that depend on textwrap