DraftModeUIContext class

Global DraftModeFramework UI helpers used to share references across widgets.

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

instance DraftModeUIContext
final

Static Methods

buildContext([BuildContext? context]) BuildContext
Returns either the provided context or the globally registered fallback.
debugReset() → void
Used in tests to reset the shared references.
init({GlobalKey<NavigatorState>? navigatorKey, BuildContext? context}) → void
Registers the navigator key or context used by shared widgets.