Context class

Inheritance
Annotations
  • @JsonSerializable.new(explicitToJson: true, includeIfNull: false)

Constructors

Context(ContextApp app, ContextDevice device, ContextLibrary library, String locale, ContextNetwork network, ContextOS os, ContextScreen screen, String timezone, UserTraits traits, {String? instanceId, Map<String, dynamic>? custom})
Context.fromJson(Map<String, dynamic> json)
factory
Context.fromNative(NativeContext nativeContext, UserTraits traits)

Properties

app ↔ ContextApp
getter/setter pair
custom ↔ Map<String, dynamic>
getter/setter pairinherited
device ↔ ContextDevice
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
instanceId ↔ String?
getter/setter pair
library ↔ ContextLibrary
getter/setter pair
locale ↔ String
getter/setter pair
network ↔ ContextNetwork
getter/setter pair
os ↔ ContextOS
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
screen ↔ ContextScreen
getter/setter pair
timezone ↔ String
getter/setter pair
traits ↔ UserTraits
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

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