BarrageType enum

Barrage type enumeration, used to distinguish different barrage message types.

Defines the type of barrage, including text barrage and custom barrage.

Note: Use the parse(value) static method to convert an integer value to the corresponding enum type.

Barrage Type List

Type Value Description
text 0 Text type barrage
custom 1 Custom type barrage
Inheritance
Available extensions

Values

text → const BarrageType

Text type barrage, contains plain text content.

const BarrageType(0)
custom → const BarrageType

Custom type barrage, supports business custom data format (such as barrages with special effects, interactive messages, etc.).

const BarrageType(1)

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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 int
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

Operators

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

Constants

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