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