AndroidWebMessageChannelCreationParams class
Object specifying creation parameters for creating a AndroidWebMessageChannel.
When adding additional fields make sure they can be null or have a default
value to avoid breaking changes. See PlatformWebMessageChannelCreationParams
for
more information.
- Annotations
Constructors
- AndroidWebMessageChannelCreationParams.new({required String id, required PlatformWebMessagePort port1, required PlatformWebMessagePort port2})
-
Creates a new AndroidWebMessageChannelCreationParams instance.
const
- AndroidWebMessageChannelCreationParams.fromPlatformWebMessageChannelCreationParams(PlatformWebMessageChannelCreationParams params)
-
Creates a AndroidWebMessageChannelCreationParams instance based on
PlatformWebMessageChannelCreationParams
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Message Channel ID used internally.
finalinherited
- port1 → PlatformWebMessagePort
-
The first
PlatformWebMessagePort
object of the channel.finalinherited - port2 → PlatformWebMessagePort
-
The second
PlatformWebMessagePort
object of the channel.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited