ChunkingStrategyResponseParamPatterns extension

Adds pattern-matching-related methods to ChunkingStrategyResponseParam.

on

Methods

map<TResult extends Object?>({required TResult static(StaticChunkingStrategyResponseParam value), required TResult other(OtherChunkingStrategyResponseParam value)}) → TResult

Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? static(StaticChunkingStrategyResponseParam value)?, TResult? other(OtherChunkingStrategyResponseParam value)?}) → TResult?

Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult static(StaticChunkingStrategyResponseParam value)?, TResult other(OtherChunkingStrategyResponseParam value)?, required TResult orElse()}) → TResult

Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult static(String type, StaticChunkingStrategy static)?, TResult other(String type)?, required TResult orElse()}) → TResult

Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension

A variant of when that fallback to an orElse callback.
when<TResult extends Object?>({required TResult static(String type, StaticChunkingStrategy static), required TResult other(String type)}) → TResult

Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? static(String type, StaticChunkingStrategy static)?, TResult? other(String type)?}) → TResult?

Available on ChunkingStrategyResponseParam, provided by the ChunkingStrategyResponseParamPatterns extension

A variant of when that fallback to returning null