ShadowRootInit constructor

ShadowRootInit({
  1. required ShadowRootMode mode,
  2. bool? delegatesFocus,
  3. SlotAssignmentMode? slotAssignment,
})

Implementation

factory ShadowRootInit(
        {required ShadowRootMode mode,
        bool? delegatesFocus,
        SlotAssignmentMode? slotAssignment}) =>
    ShadowRootInit._(
        mode: mode.value,
        delegatesFocus: delegatesFocus ?? false,
        slotAssignment:
            slotAssignment?.value ?? SlotAssignmentMode.named.value);