Context class

Relates nicknames to context information.

Constructors

Context({required String name, ContextDetails? contextDetails, Iterable<NamedExtension>? extensions})
The default constructor.
Context.fromJson(Map<String, dynamic> json)
Creates a Context from JSON data.

Properties

contextDetails ContextDetails?
Gets or sets the context information.
final
extensions Iterable<NamedExtension>?
Gets or sets additional information. This is useful for extenders so that reads and writes don't clobber unknown fields.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
name String
Gets or sets the nickname for this context.
final
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

listFromJson(Iterable<Map<String, dynamic>> list) List<Context>
Creates a list of Context from JSON data.