DVProtocolAdapter class
A declared, reviewed adaptation for a lossy change.
from is the old protocol version it serves and subject the change it covers, named as DVProtocolChange.subject names it. An adapter for one version does not cover another: the same subject can mean a different change against a different old contract.
Constructors
Properties
- from → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- request → Object? Function(Object? value)?
-
Converts what the old client sent into a current value.
final
- response → Object? Function(Object? value)?
-
Converts a current value into what the old client reads.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subject → String
-
final
Methods
-
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