RefreshableExtension class abstract interface

A ContextExtension that can put its definitions in place again, as the code now makes them, after a hot reload — so an editor shows a field just added to one of its components. See EngineContext.refreshDefinitions.

refresh must be safe to call any number of times: register with ComponentDefinitionRegistry.refresh and other replace-by-key calls, never anything that appends (a migration, a listener).

Implemented types
Implementers

Properties

hashCode → int
The hash code for this object.
no setterinherited
id → String
Names the extension; one install per context.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

install(EngineContext context) → void
Registers what the package brings into context.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
refresh(EngineContext context) → void
Puts what install registered in place again, from the code as it now is.
toString() → String
A string representation of this object.
inherited

Operators

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