ClientTarget<T extends Component> class
final
The target configuration for a @client component.
DO NOT USE DIRECTLY.
Use the generated defaultServerOptions instead.
Constructors
-
ClientTarget(String name, {Map<
String, Object?> params(T component)?}) -
Creates the target configuration for the client component named
name.const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name that identifies the client component in its markers and on the client.
final
-
params
→ Map<
String, Object?> Function(T component)? -
The function that extracts the parameters to pass to the client from a component,
or
nullif the client component has no parameters.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dataFor(
T component, {Object? encode(Object?)?}) → String? -
Returns the params of
componentencoded as JSON for its client component marker, ornullif this target has no params. -
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