PositiveNumberRangeRule class

Checks if the given input is greater than 0 and within the given upper bound.

Constructors

PositiveNumberRangeRule(num fact, num max)
const

Properties

fact num
final
hashCode int
The hash code for this object.
no setterinherited
max num
Maximum number of the range.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

apply() → RuleResponse<num>
An alias for the execute function.
inherited
build() → Rule<num, num>
execute() → RuleResponse<num>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

min → const int