ChatBoostPatterns extension

Adds pattern-matching-related methods to ChatBoost.

on

Methods

map<TResult extends Object?>(TResult $default(_ChatBoost value)) → TResult

Available on ChatBoost, provided by the ChatBoostPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>(TResult? $default(_ChatBoost value)?) → TResult?

Available on ChatBoost, provided by the ChatBoostPatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>(TResult $default(_ChatBoost value)?, {required TResult orElse()}) → TResult

Available on ChatBoost, provided by the ChatBoostPatterns extension

A variant of map that fallback to returning orElse.