indent_string 1.0.0 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 #
- indent-string by Sindre Sorhus