StubIoPolicyPort class
Stub implementation of IoPolicyPort for testing.
- Implemented types
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addRule(
PolicyRule rule) → Future< void> -
Add a new policy rule.
override
-
listRules(
{String? deviceIdFilter, String? actionFilter}) → Future< List< PolicyRule> > -
List policy rules, optionally filtered by device ID or action.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeRule(
String ruleId) → Future< void> -
Remove a policy rule by its ID.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
updateRule(
PolicyRule rule) → Future< void> -
Update an existing policy rule (matched by
rule.id).override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited