DVProtocolFunction class

A backend function's signature as a client calls it.

An injected DVContext first parameter is not listed: the client never supplies it, so it is not something the two sides agree on.

Constructors

DVProtocolFunction(String name, {List<DVProtocolField> parameters = const <DVProtocolField>[], required String returns})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
final
parameters → List<DVProtocolField>
final
returns → String
final
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
parameter(String name) → DVProtocolField?
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, Object?> json) → DVProtocolFunction