Watcher class abstract

Watcher is the interface for Casbin watchers.

Constructors

Watcher()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setUpdateCallback(void fn()) → void
SetUpdateCallback sets the callback function that the watcher will call when the policy in DB has been changed by other instances. A classic callback is Enforcer.loadPolicy().
toString() String
A string representation of this object.
inherited
update() → void
Update calls the update callback of other instances to synchronize their policy. It is usually called after changing the policy in DB, like Enforcer.savePolicy(), Enforcer.addPolicy(), Enforcer.removePolicy(), etc.

Operators

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