RpcMethod.unary constructor
const
RpcMethod.unary({
- required String name,
- String? description,
- Type? requestCodec,
- Type? responseCodec,
- RpcDataTransferMode? transferMode,
Creates a unary RpcMethod annotation.
Implementation
const RpcMethod.unary({
required this.name,
this.description,
this.requestCodec,
this.responseCodec,
this.transferMode,
}) : kind = RpcMethodType.unary;