ByteArkPlayerNativeEvent class

Native-side event delivered through the broadcast EventChannel.

Constructors

ByteArkPlayerNativeEvent({required String type, dynamic data, String? playerId})
Creates a ByteArkPlayerNativeEvent.
ByteArkPlayerNativeEvent.fromMap(Map<String, dynamic> json)
Constructs an event from the decoded JSON map sent by the native side.
factory

Properties

data → dynamic
Optional event payload. Shape varies by event type.
final
hashCode int
The hash code for this object.
no setterinherited
playerId String?
Identifier of the player that emitted the event. May be null while the native side is still being updated to include it; clients should treat null as "unknown source" and accept the event.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
The event type, matching a constant in ByteArkPlayerEventTypes.
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