Rules Library
A utility library that contains a set of most commonly used rules.
What's inside the package
- Decimal Rules
- Number Rules
- Text Rules
Check out all the components in detail here
How to use
final text = 'Sony Xperia';
final pattern = 'Sony';
final rule = TextStartsWithRule(text, pattern, value: text);
final ruleResponse = rule.execute();
print(ruleResponse.isSuccess); // true
To learn more, move on to the example section or check out these dedicated examples in github.