fromData static method

MapWidgetDebugOptions fromData(
  1. MapWidgetDebugOptionsData data
)

Maps a raw Pigeon enum value back to the typed wrapper. Used by platform implementations; not intended for direct use by facade users.

Implementation

static MapWidgetDebugOptions fromData(MapWidgetDebugOptionsData data) {
  switch (data) {
    case MapWidgetDebugOptionsData.tileBorders:
      return tileBorders;
    case MapWidgetDebugOptionsData.parseStatus:
      return parseStatus;
    case MapWidgetDebugOptionsData.timestamps:
      return timestamps;
    case MapWidgetDebugOptionsData.collision:
      return collision;
    case MapWidgetDebugOptionsData.overdraw:
      return overdraw;
    case MapWidgetDebugOptionsData.stencilClip:
      return stencilClip;
    case MapWidgetDebugOptionsData.depthBuffer:
      return depthBuffer;
    case MapWidgetDebugOptionsData.modelBounds:
      return modelBounds;
    case MapWidgetDebugOptionsData.terrainWireframe:
      return terrainWireframe;
    case MapWidgetDebugOptionsData.layers2DWireframe:
      return layers2DWireframe;
    case MapWidgetDebugOptionsData.layers3DWireframe:
      return layers3DWireframe;
    case MapWidgetDebugOptionsData.light:
      return light;
    case MapWidgetDebugOptionsData.camera:
      return camera;
    case MapWidgetDebugOptionsData.padding:
      return padding;
  }
}