AdaptiveContext class

Internal holder for the current AdaptiveData context.

This is used by the num extensions to access the device info. It should be set by the AdaptiveScope or builder widgets.

Constructors

AdaptiveContext()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

context BuildContext
Gets the current context, throwing if not set.
no setter
maybeContext BuildContext?
Gets the current context, or null if not set.
no setter

Static Methods

setContext(BuildContext context) → void
Sets the current context for extensions to use.