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.

example/indent_string_example.dart

import 'package:indent_string/indent_string.dart';

void main() {
  // 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'
}
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