RpcMethod.unary constructor

const RpcMethod.unary({
  1. required String name,
  2. String? description,
  3. Type? requestCodec,
  4. Type? responseCodec,
  5. 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;