StringRuleRepository class

A rule repository that loads rules from a list of strings.

The repository can load rules from a list of strings. The rules are expected to be in JSON format.

Inheritance

Constructors

StringRuleRepository.new(List<String> rules)

Properties

hashCode int
The hash code for this object.
no setterinherited
rules List<String>
The list of rules to load.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose() Future<void>
Disposes the repository.
override
findAllRules() Future<List<Rule>>
Finds all rules in the repository.
inherited
findById(String id) Future<Rule?>
Finds a rule by id.
inherited
findByName(String name) Future<List<Rule>>
Finds rules by name.
inherited
loadJsonRuleById(String id) Future<String?>
Loads a json rule by id.
override
loadJsonRuleByName(String name) Stream<String>
Loads a json rule by name.
override
loadJsonRules() Stream<String>
Loads all json rules.
override
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