XRDepthStateInit constructor

XRDepthStateInit({
  1. required Iterable<XRDepthUsage> usagePreference,
  2. required Iterable<XRDepthDataFormat> dataFormatPreference,
})

Implementation

factory XRDepthStateInit(
        {required Iterable<XRDepthUsage> usagePreference,
        required Iterable<XRDepthDataFormat> dataFormatPreference}) =>
    XRDepthStateInit._(
        usagePreference: usagePreference.map((e) => e.value),
        dataFormatPreference: dataFormatPreference.map((e) => e.value));