RTCDataChannelInit constructor

RTCDataChannelInit({
  1. bool? ordered,
  2. int? maxPacketLifeTime,
  3. int? maxRetransmits,
  4. String? protocol,
  5. bool? negotiated,
  6. int? id,
})

Implementation

factory RTCDataChannelInit(
        {bool? ordered,
        int? maxPacketLifeTime,
        int? maxRetransmits,
        String? protocol,
        bool? negotiated,
        int? id}) =>
    RTCDataChannelInit._(
        ordered: ordered ?? true,
        maxPacketLifeTime: maxPacketLifeTime ?? undefined,
        maxRetransmits: maxRetransmits ?? undefined,
        protocol: protocol ?? '',
        negotiated: negotiated ?? false,
        id: id ?? undefined);