// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'webview_design_model.dart';

// **************************************************************************
// DesignSpecGenerator
// **************************************************************************

class _WebviewDesignSpec extends WebviewDesignSpec {
  _WebviewDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.moreIconMarginEnd,
    this.moreIconSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(750.0, 1624.0));

  static final Map<String, _WebviewDesignSpec> _cache = {};

  @override
  final double moreIconMarginEnd;

  @override
  final double moreIconSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _WebviewDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _WebviewDesignSpec._(
      _measuredMetrics, offset,
      _measuredMetrics.measureWidth(40.0), // moreIconMarginEnd
      _measuredMetrics.measureHeight(48.0, consistent: false), // moreIconSize
    );
  }

  static WebviewDesignSpec get({Offset offset = Offset.zero}) {
    final Size measuredSize = Get.size;
    final key = BasicDesignSpec.buildSpecKey(measuredSize, offset);
    _WebviewDesignSpec? designSpec = _cache[key];
    if (kDebugMode || designSpec == null) {
      designSpec = _create(measuredSize, offset: offset);
      _cache[key] = designSpec;
    }
    return designSpec;
  }
}
