// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'banner.dart';

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

class _AdsBannerDesignSpec extends AdsBannerDesignSpec {
  _AdsBannerDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.mobileBannerSize,
    this.padBannerSize,
  );

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

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

  @override
  final Size mobileBannerSize;

  @override
  final Size padBannerSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _AdsBannerDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _AdsBannerDesignSpec._(
      _measuredMetrics, offset,
      Size(_measuredMetrics.measureWidth(750.0), 50.0), // mobileBannerSize
      Size(_measuredMetrics.measureWidth(750.0), 90.0), // padBannerSize
    );
  }

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