AppContext class

Context information for rules execution, organized by scopes

Constructors

AppContext({Map<String, dynamic> session = const {}, Map<String, dynamic> execution = const {}, Map<String, dynamic> scopes = const {}, String? installationId, Map<String, dynamic>? app, Map<String, dynamic>? device, Map<String, dynamic>? user})
const

Properties

app → Map<String, dynamic>?
final
device → Map<String, dynamic>?
final
execution → Map<String, dynamic>
final
hashCode → int
The hash code for this object.
no setterinherited
installationId → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scopes → Map<String, dynamic>
final
session → Map<String, dynamic>
final
user → Map<String, dynamic>?
final

Methods

addVariable(String scope, String name, dynamic value) → AppContext
Adds a variable to a specific scope
copyWith({Map<String, dynamic>? session, Map<String, dynamic>? execution, Map<String, dynamic>? scopes, String? installationId, Map<String, dynamic>? app, Map<String, dynamic>? device, Map<String, dynamic>? user}) → AppContext
Creates a new context with updated values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
Converts to map format for rules execution (matching real rule.json structure)
toString() → String
A string representation of this object.
override

Operators

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