ServerAppBinding class

Global component binding for the server.

Inheritance
Mixed-in types

Constructors

ServerAppBinding(RequestLike request, {required FileLoader loadFile})

Properties

basePath → String
The base path of the application.
no setteroverride
cookies → Map<String, String>
Unmodifiable view of the cookies sent with the request.
latefinal
currentUrl → String
The currently active url.
no setteroverride
hashCode → int
The hash code for this object.
no setterinherited
isClient → bool
Whether the current app is run on the client (in the browser)
no setteroverride
options → ServerOptions
no setter
request → RequestLike
final
responseHeaders → Map<String, List<String>>
final
responseStatusCode ↔ int
getter/setter pair
rootElement → RenderObjectElement?
The Element that is at the root of the hierarchy.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schedulerPhase → SchedulerPhase
no setterinherited

Methods

addPostFrameCallback(VoidCallback callback) → void
inherited
addRenderAdapter(RenderAdapter adapter) → void
attachRootComponent(Component app) → void
Sets app as the new root of the component tree and performs an initial build
override
completeInitialFrame() → void
inherited
createRootBuildOwner() → BuildOwner
override
createRootRenderObject() → RenderObject
override
detachRootComponent() → void
Detaches the current root component from the tree and disposes/unmounts it.
inherited
initializeOptions(ServerOptions options) → void
loadFile(String name) → Future<String?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
render({bool standalone = false}) → Future<Uint8List>
reportBuildError(Element element, Object error, StackTrace stackTrace) → void
Report an error that occurred during the build process of element.
override
scheduleBuild(VoidCallback buildCallback) → void
Schedules a build and ultimately calls _handleFrame with the provided buildCallback.
inherited
scheduleFrame(VoidCallback frameCallback) → void
Schedules a frame with the provided frameCallback.
override
toString() → String
A string representation of this object.
inherited

Operators

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