dedent 1.0.2 copy "dedent: ^1.0.2" to clipboard
dedent: ^1.0.2 copied to clipboard

Remove any common leading whitespace from every line in text.

example/example.md

Usage #

import 'package:dedent/dedent.dart';

It's quite handy to strip leading spaces from multi-line text. Flutter code often involves deeply nested indented code, so any multiline text will end up containing leading spaces or tabs - which may affect your layout!

FittedBox(
  child: Text(dedent('''
    Not really possible to access another widget, or rather, another
    widget's state in order to change it. You really need to create
    a model and have the model change cause the change.
  ''')),
)
2
likes
160
pub points
77%
popularity

Publisher

unverified uploader

Remove any common leading whitespace from every line in text.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

quiver

More

Packages that depend on dedent