UThreadItemValue class sealed

Available extensions
Annotations
  • @freezed

Constructors

UThreadItemValue.threadItemBlocked({required ThreadItemBlocked data})
const
factory
UThreadItemValue.threadItemNotFound({required ThreadItemNotFound data})
const
factory
UThreadItemValue.threadItemNoUnauthenticated({required ThreadItemNoUnauthenticated data})
const
factory
UThreadItemValue.threadItemPost({required ThreadItemPost data})
const
factory
UThreadItemValue.unknown({required Map<String, dynamic> data})
const
factory

Properties

data Object
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
isNotThreadItemBlocked bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isNotThreadItemNotFound bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isNotThreadItemNoUnauthenticated bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isNotThreadItemPost bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isNotUnknown bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isThreadItemBlocked bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isThreadItemNotFound bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isThreadItemNoUnauthenticated bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isThreadItemPost bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
isUnknown bool

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
threadItemBlocked ThreadItemBlocked?

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
threadItemNotFound ThreadItemNotFound?

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
threadItemNoUnauthenticated ThreadItemNoUnauthenticated?

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
threadItemPost ThreadItemPost?

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter
unknown Map<String, dynamic>?

Available on UThreadItemValue, provided by the UThreadItemValueExtension extension

no setter

Methods

map<TResult extends Object?>({required TResult threadItemPost(UThreadItemValueThreadItemPost value), required TResult threadItemNoUnauthenticated(UThreadItemValueThreadItemNoUnauthenticated value), required TResult threadItemNotFound(UThreadItemValueThreadItemNotFound value), required TResult threadItemBlocked(UThreadItemValueThreadItemBlocked value), required TResult unknown(UThreadItemValueUnknown value)}) → TResult

Available on UThreadItemValue, provided by the UThreadItemValuePatterns extension

A switch-like method, using callbacks.
mapOrNull<TResult extends Object?>({TResult? threadItemPost(UThreadItemValueThreadItemPost value)?, TResult? threadItemNoUnauthenticated(UThreadItemValueThreadItemNoUnauthenticated value)?, TResult? threadItemNotFound(UThreadItemValueThreadItemNotFound value)?, TResult? threadItemBlocked(UThreadItemValueThreadItemBlocked value)?, TResult? unknown(UThreadItemValueUnknown value)?}) → TResult?

Available on UThreadItemValue, provided by the UThreadItemValuePatterns extension

A variant of map that fallback to returning null.
maybeMap<TResult extends Object?>({TResult threadItemPost(UThreadItemValueThreadItemPost value)?, TResult threadItemNoUnauthenticated(UThreadItemValueThreadItemNoUnauthenticated value)?, TResult threadItemNotFound(UThreadItemValueThreadItemNotFound value)?, TResult threadItemBlocked(UThreadItemValueThreadItemBlocked value)?, TResult unknown(UThreadItemValueUnknown value)?, required TResult orElse()}) → TResult

Available on UThreadItemValue, provided by the UThreadItemValuePatterns extension

A variant of map that fallback to returning orElse.
maybeWhen<TResult extends Object?>({TResult threadItemPost(ThreadItemPost data)?, TResult threadItemNoUnauthenticated(ThreadItemNoUnauthenticated data)?, TResult threadItemNotFound(ThreadItemNotFound data)?, TResult threadItemBlocked(ThreadItemBlocked data)?, TResult unknown(Map<String, dynamic> data)?, required TResult orElse()}) → TResult

Available on UThreadItemValue, provided by the UThreadItemValuePatterns extension

A variant of when that fallback to an orElse callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult threadItemPost(ThreadItemPost data), required TResult threadItemNoUnauthenticated(ThreadItemNoUnauthenticated data), required TResult threadItemNotFound(ThreadItemNotFound data), required TResult threadItemBlocked(ThreadItemBlocked data), required TResult unknown(Map<String, dynamic> data)}) → TResult

Available on UThreadItemValue, provided by the UThreadItemValuePatterns extension

A switch-like method, using callbacks.
whenOrNull<TResult extends Object?>({TResult? threadItemPost(ThreadItemPost data)?, TResult? threadItemNoUnauthenticated(ThreadItemNoUnauthenticated data)?, TResult? threadItemNotFound(ThreadItemNotFound data)?, TResult? threadItemBlocked(ThreadItemBlocked data)?, TResult? unknown(Map<String, dynamic> data)?}) → TResult?

Available on UThreadItemValue, provided by the UThreadItemValuePatterns extension

A variant of when that fallback to returning null

Operators

operator ==(Object other) bool
The equality operator.
inherited