indent_string 1.0.0 copy "indent_string: ^1.0.0" to clipboard
indent_string: ^1.0.0 copied to clipboard

Small dart util used to indent each line in a string.

indent_string #

Indent each line in a string

Usage #

import 'package:indent_string/indent_string.dart';

  // Use as a regular function...
  print(indentString('Unicorns\nRainbows', count: 4));
  // => '    Unicorns\n    Rainbows'

  // ...or as an extension on Strings
  print('Unicorns\nRainbows'.indent(count: 4));
  // => '    Unicorns\n    Rainbows'

Credits #

0
likes
150
pub points
0%
popularity

Publisher

verified publishermarinvitlov.com

Small dart util used to indent each line in a string.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on indent_string