BloomRpcContract<TInput, TOutput>.delete constructor
const
BloomRpcContract<TInput, TOutput>.delete (})
Shorthand constructor for an HTTP DELETE endpoint contract.
const deletePost = BloomRpcContract<void, void>.delete(
'/posts/:id',
);
Implementation
const BloomRpcContract.delete(
String pathTemplate, {
dynamic Function(TInput input)? encodeInput,
TInput Function(dynamic json)? decodeInput,
dynamic Function(TOutput output)? encodeOutput,
TOutput Function(dynamic json)? decodeOutput,
String? summary,
String? description,
List<dynamic> Function(TInput input)? customCacheKey,
}) : this(
method: BloomHttpMethod.delete,
pathTemplate: pathTemplate,
encodeInput: encodeInput,
decodeInput: decodeInput,
encodeOutput: encodeOutput,
decodeOutput: decodeOutput,
summary: summary,
description: description,
customCacheKey: customCacheKey,
);