///
/// NativeLinearListLayoutIOSConfig.swift
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
/// https://github.com/mrousavy/nitro
/// Copyright © Marc Rousavy @ Margelo
///

import NitroModules

/**
 * Represents an instance of `NativeLinearListLayoutIOSConfig`, backed by a C++ struct.
 */
public typealias NativeLinearListLayoutIOSConfig = margelo.nitro.reactnativelist.NativeLinearListLayoutIOSConfig

public extension NativeLinearListLayoutIOSConfig {
  private typealias bridge = margelo.nitro.reactnativelist.bridge.swift

  /**
   * Create a new instance of `NativeLinearListLayoutIOSConfig`.
   */
  init(estimatedItemSize: NativeItemSizeEstimate?) {
    self.init({ () -> bridge.std__optional_NativeItemSizeEstimate_ in
      if let __unwrappedValue = estimatedItemSize {
        return bridge.create_std__optional_NativeItemSizeEstimate_(__unwrappedValue)
      } else {
        return .init()
      }
    }())
  }

  @inline(__always)
  var estimatedItemSize: NativeItemSizeEstimate? {
    return self.__estimatedItemSize.value
  }
}
