ListShouldNotBeEmptyRule<T extends Object?> class

Checks if the given list is empty.

Constructors

ListShouldNotBeEmptyRule(Iterable<T> fact)
const

Properties

fact Iterable<T>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value Iterable<T>
no setter

Methods

apply() → RuleResponse<Iterable<T>>
An alias for the execute function.
inherited
execute() → RuleResponse<Iterable<T>>
inherited
isSatisfied(Iterable<T> fact) bool
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