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.
constfactory
- CallStateData.joined({@JsonKey(name: 'callConfiguration') required CallConfig callConfig})
-
See CallState.joined.
constfactory
- CallStateData.joining()
-
See CallState.joining.
constfactory
- CallStateData.leaving()
-
See CallState.leaving.
constfactory
- CallStateData.left()
-
See CallState.left.
constfactory
Properties
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