KnownNotificationReason enum

Overview

The object representing knownValues defined in Lexicon as an Enum.

Although the knownValues defined in Lexicon are not technically Enums, it is very useful to be able to treat these fields as type safe Enums.

Usage

Get JSON compatible value

// JSON compatible value.
final value = KnownNotificationReason.something.value;

Convert to UNotificationReason

final union = KnownNotificationReason.something.toUnion();
Inheritance
Available extensions

Values

like → const KnownNotificationReason
const KnownNotificationReason('like')
repost → const KnownNotificationReason
const KnownNotificationReason('repost')
follow → const KnownNotificationReason
const KnownNotificationReason('follow')
mention → const KnownNotificationReason
const KnownNotificationReason('mention')
reply → const KnownNotificationReason
const KnownNotificationReason('reply')
quote → const KnownNotificationReason
const KnownNotificationReason('quote')
starterpackJoined → const KnownNotificationReason
const KnownNotificationReason('starterpack-joined')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
isFollow bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is follow, otherwise false.
no setter
isLike bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is like, otherwise false.
no setter
isMention bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is mention, otherwise false.
no setter
isNotFollow bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not follow, otherwise false.
no setter
isNotLike bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not like, otherwise false.
no setter
isNotMention bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not mention, otherwise false.
no setter
isNotQuote bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not quote, otherwise false.
no setter
isNotReply bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not reply, otherwise false.
no setter
isNotRepost bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not repost, otherwise false.
no setter
isNotStarterpackJoined bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is not starterpackJoined, otherwise false.
no setter
isQuote bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is quote, otherwise false.
no setter
isReply bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is reply, otherwise false.
no setter
isRepost bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is repost, otherwise false.
no setter
isStarterpackJoined bool

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns true if this value is starterpackJoined, otherwise false.
no setter
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
JSON value based on lexicon.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toUnion() UNotificationReason

Available on KnownNotificationReason, provided by the $KnownNotificationReasonExtension extension

Returns this value as UNotificationReason.

Operators

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

Static Methods

valueOf(String? value) KnownNotificationReason?
Returns KnownNotificationReason associated with value, otherwise null.

Constants

values → const List<KnownNotificationReason>
A constant List of the values in this enum, in order of their declaration.