string_templates

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

string templates

string-templates #
A simple library for handling string templates. Now can add symbols
in string for requierment length (as in example).
ChangeLog #
ChangeLog.md
Getting Started #
Add the following to your pubspec.yaml:
dependencies:
string_templates: "^0.0.3"
copied to clipboard
then run pub install.
Next, import string-templates:
import 'package:string_templates/string_templates.dart';
copied to clipboard
Example #
import 'package:string_templates/string_templates.dart' as templates;

void main(List<String> arguments) {
var params = <String, Object>{'arg1': 10, 'arg2': 20};
print(templates.interpolate('{arg1:%08d}-{ arg2 }-{arg1}', params));
}

copied to clipboard
00000010-20-10
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.