Context class

Represents the context of an action in a domain.

Constructors

Context.new({required String domain, required String action})
Creates a new instance of Context.

Properties

action String
getter/setter pair
domain String
getter/setter pair
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
toCompactJson() Map<String, dynamic>
Converts the Context instance to a compact JSON map.
toJson() Map<String, dynamic>
Converts the Context instance to a JSON map.
toMinimalCompactJson() Map<String, dynamic>
Converts the Context instance to a minimal compact JSON map.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromCompactJson(Map<String, dynamic> json) Context
Creates a Context instance from a compact JSON map.
fromJson(Map<String, dynamic> json) Context
Creates a Context instance from a JSON map.
fromMinimalCompactJson(Map<String, dynamic> json) Context
Creates a Context instance from a minimal compact JSON map.