CallStateData class

The call state data includes the call state and, in the case of CallState.joined, the call configuration.

Annotations
  • @Freezed(unionKey: 'state')

Constructors

CallStateData.fromJson(Map<String, dynamic> json)
factory
CallStateData.initialized()
See CallState.initialized.
const
factory
CallStateData.joined({@JsonKey(name: 'callConfiguration') required CallConfig callConfig})
See CallState.joined.
const
factory
CallStateData.joining()
See CallState.joining.
const
factory
CallStateData.leaving()
See CallState.leaving.
const
factory
CallStateData.left()
See CallState.left.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state CallState
no setter

Methods

map<TResult extends Object?>({required TResult initialized(_CallStateDataInitialized value), required TResult joining(_CallStateDataJoining value), required TResult joined(_CallStateDataJoined value), required TResult leaving(_CallStateDataLeaving value), required TResult left(_CallStateDataLeft value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? initialized(_CallStateDataInitialized value)?, TResult? joining(_CallStateDataJoining value)?, TResult? joined(_CallStateDataJoined value)?, TResult? leaving(_CallStateDataLeaving value)?, TResult? left(_CallStateDataLeft value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult initialized(_CallStateDataInitialized value)?, TResult joining(_CallStateDataJoining value)?, TResult joined(_CallStateDataJoined value)?, TResult leaving(_CallStateDataLeaving value)?, TResult left(_CallStateDataLeft value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult initialized()?, TResult joining()?, TResult joined(CallConfig callConfig)?, TResult leaving()?, TResult left()?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult initialized(), required TResult joining(), required TResult joined(CallConfig callConfig), required TResult leaving(), required TResult left()}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? initialized()?, TResult? joining()?, TResult? joined(CallConfig callConfig)?, TResult? leaving()?, TResult? left()?}) → TResult?
inherited

Operators

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