0 purchases
zam rules
Rules Library #
A utility library that contains a set of most commonly used rules.
What's inside the package #
Decimal Rules
DecimalRangeRule
LesserThanDecimalRule
GreaterThanDecimalRule
LesserThanOrEqualToDecimalRule
GreaterThanOrEqualToDecimalRule
PositiveDecimalRule
Number Rules
NumberRangeRule
LesserThanNumberRule
GreaterThanNumberRule
PositiveNumberRule
PositiveNumberRangeRule
PercentNumberRule
EightBitNumberRule
ThirtyTwoBitNumberRule
Text Rules
TextStartsWithRule
MatchOnePatternRule
EndsWithPatternMatcherRule
PatternMatcherRule
RegexMatcherRule
StartsWithPatternMatcherRule
TextStartsWithRule
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
copied to clipboard
To learn more, move on to the example section or check out these dedicated examples in github.
Status #
Contributors #
Amsakanna
License #
BSD 3-Clause License
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.