ClientParams class final

The parameters of a @client component, decoded from its server-rendered markup.

Component parameters, which render as server components, are passed as IDs that mount resolves.

DO NOT USE DIRECTLY. Use the generated defaultClientOptions instead.

Constructors

ClientParams(Map<String, Object?> _params, List<ServerComponentAnchor> serverComponents)
Creates the parameters of a client component from its decoded parameter values and the server components rendered within it.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serverComponents → List<ServerComponentAnchor>
The server components rendered within the client component that aren't mounted yet.
final

Methods

get<T>(String key) → T
Returns the JSON value of the parameter named key.
mount(String sId) → Component
Returns a component that renders the server component with the ID sId, reusing the DOM nodes the server rendered for it.
mountOrNull(String? sId) → Component?
Returns null if sId is null, and otherwise the same as mount.
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