slang-i18n / slang

Type-safe i18n for Dart and Flutter
https://pub.dev/packages/slang
MIT License
474 stars 39 forks source link

Default parameters for non-rich nodes #107

Open Tienisto opened 2 years ago

Tienisto commented 2 years ago

Motivation RichText has default parameters. Normal ones (StringText) shall have this feature too.

Developer Experience Similar to RichText using brackets (...), e.g. Welcome {name(User)}

String a = t.welcome(name: 'Tom'); // Welcome Tom
String b = t.welcome(); // Welcome User