UnspeccedGetPostThreadOtherV2InputPatterns extension
Adds pattern-matching-related methods to UnspeccedGetPostThreadOtherV2Input.
Methods
-
map<
TResult extends Object?> (TResult $default(_UnspeccedGetPostThreadOtherV2Input value)) → TResult -
Available on UnspeccedGetPostThreadOtherV2Input, provided by the UnspeccedGetPostThreadOtherV2InputPatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_UnspeccedGetPostThreadOtherV2Input value)?) → TResult? -
Available on UnspeccedGetPostThreadOtherV2Input, provided by the UnspeccedGetPostThreadOtherV2InputPatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_UnspeccedGetPostThreadOtherV2Input value)?, {required TResult orElse()}) → TResult -
Available on UnspeccedGetPostThreadOtherV2Input, provided by the UnspeccedGetPostThreadOtherV2InputPatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(AtUri anchor, bool prioritizeFollowedUsers, Map< String, dynamic> ? $unknown)?, {required TResult orElse()}) → TResult -
Available on UnspeccedGetPostThreadOtherV2Input, provided by the UnspeccedGetPostThreadOtherV2InputPatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
when<
TResult extends Object?> (TResult $default(AtUri anchor, bool prioritizeFollowedUsers, Map< String, dynamic> ? $unknown)) → TResult -
Available on UnspeccedGetPostThreadOtherV2Input, provided by the UnspeccedGetPostThreadOtherV2InputPatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(AtUri anchor, bool prioritizeFollowedUsers, Map< String, dynamic> ? $unknown)?) → TResult? -
Available on UnspeccedGetPostThreadOtherV2Input, provided by the UnspeccedGetPostThreadOtherV2InputPatterns extension
A variant ofwhen
that fallback to returningnull