InputProfilePhotoPatterns extension

Adds pattern-matching-related methods to InputProfilePhoto.

on

Methods

map<TResult extends Object?>({required TResult static(InputProfilePhotoStatic value), required TResult animated(InputProfilePhotoAnimated value)}) → TResult

Available on InputProfilePhoto, provided by the InputProfilePhotoPatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? static(InputProfilePhotoStatic value)?, TResult? animated(InputProfilePhotoAnimated value)?}) → TResult?

Available on InputProfilePhoto, provided by the InputProfilePhotoPatterns extension

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

Available on InputProfilePhoto, provided by the InputProfilePhotoPatterns extension

A variant of map that fallback to returning orElse.