// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'subscription_card.dart';

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

class _SubscriptionMainCardDesignSpec extends SubscriptionMainCardDesignSpec {
  _SubscriptionMainCardDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.decorationSize,
    this.premiumCenterCardDecorationRadius,
    this.decorationFontSize,
    this.cardBorderWidth,
    this.cardRadius,
    this.titleMargin,
    this.titleFontSize,
    this.subTitleMargin,
    this.subTitleFontSize,
    this.thenMargin,
    this.thenFontSize,
    this.priceMargin,
    this.priceFontSize,
    this.cardLabelTopSpcing,
    this.cardLabelRightSpcing,
    this.cardLabelSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(242.0, 320.0));

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

  @override
  final Size decorationSize;

  @override
  final BorderRadiusDirectional premiumCenterCardDecorationRadius;

  @override
  final double decorationFontSize;

  @override
  final double cardBorderWidth;

  @override
  final BorderRadiusDirectional cardRadius;

  @override
  final EdgeInsetsDirectional titleMargin;

  @override
  final double titleFontSize;

  @override
  final EdgeInsetsDirectional subTitleMargin;

  @override
  final double subTitleFontSize;

  @override
  final EdgeInsetsDirectional thenMargin;

  @override
  final double thenFontSize;

  @override
  final EdgeInsetsDirectional priceMargin;

  @override
  final double priceFontSize;

  @override
  final double cardLabelTopSpcing;

  @override
  final double cardLabelRightSpcing;

  @override
  final double cardLabelSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _SubscriptionMainCardDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _SubscriptionMainCardDesignSpec._(
      _measuredMetrics, offset,
      Size(_measuredMetrics.measureWidth(242.0),
          _measuredMetrics.measureHeight(58.0)), // decorationSize
      BorderRadiusDirectional.only(
          topStart: Radius.circular(_measuredMetrics.measureHeight(20.0)),
          topEnd: Radius.circular(_measuredMetrics.measureHeight(20.0)),
          bottomStart: Radius.circular(0.0),
          bottomEnd: Radius.circular(0.0)), // premiumCenterCardDecorationRadius
      _measuredMetrics.measureAbsoluteFontSize(22.0,
          consistent: false), // decorationFontSize
      _measuredMetrics.measureHeight(4.0, consistent: false), // cardBorderWidth
      BorderRadiusDirectional.circular(
          _measuredMetrics.measureHeight(24.0)), // cardRadius
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: _measuredMetrics.measureHeight(40.0),
          bottom: 0.0), // titleMargin
      _measuredMetrics.measureAbsoluteFontSize(38.0,
          consistent: false), // titleFontSize
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: _measuredMetrics.measureHeight(10.0),
          bottom: 0.0), // titleMargin
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false), 
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: 0.0,
          bottom: _measuredMetrics.measureHeight(6.0)),
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false),
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: 0.0,
          bottom: _measuredMetrics.measureHeight(32.0)), // priceMargin
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // priceFontSize
      _measuredMetrics.measureHeight(-56.0,
          consistent: false), // cardLabelTopSpcing
      _measuredMetrics.measureHeight(-40.0,
          consistent: false), // cardLabelRightSpcing
      _measuredMetrics.measureHeight(136.0, consistent: false), // cardLabelSize
    );
  }

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


class _SubscriptionEdgeCardDesignSpec extends SubscriptionEdgeCardDesignSpec {
  _SubscriptionEdgeCardDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardBorderWidth,
    this.cardRadius,
    this.titleMargin,
    this.titleFontSize,
    this.subTitleMargin,
    this.subTitleFontSize,
    this.thenMargin,
    this.thenFontSize,
    this.priceMargin,
    this.priceFontSize,
    this.cardLabelTopSpcing,
    this.cardLabelRightSpcing,
    this.cardLabelSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(206.0, 268.0));

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

  @override
  final double cardBorderWidth;

  @override
  final BorderRadiusDirectional cardRadius;

  @override
  final EdgeInsetsDirectional titleMargin;

  @override
  final double titleFontSize;

  @override
  final EdgeInsetsDirectional subTitleMargin;

  @override
  final double subTitleFontSize;

  @override
  final EdgeInsetsDirectional thenMargin;

  @override
  final double thenFontSize;

  @override
  final EdgeInsetsDirectional priceMargin;

  @override
  final double priceFontSize;

  @override
  final double cardLabelTopSpcing;

  @override
  final double cardLabelRightSpcing;

  @override
  final double cardLabelSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _SubscriptionEdgeCardDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _SubscriptionEdgeCardDesignSpec._(
      _measuredMetrics, offset,
      _measuredMetrics.measureHeight(4.0, consistent: false), // cardBorderWidth
      BorderRadiusDirectional.circular(
          _measuredMetrics.measureHeight(24.0)), // cardRadius
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: _measuredMetrics.measureHeight(40.0),
          bottom: 0.0), // titleMargin
      _measuredMetrics.measureAbsoluteFontSize(32.0,
          consistent: false), // titleFontSize
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: _measuredMetrics.measureHeight(10.0),
          bottom: 0.0), // titleMargin
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false), 
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: 0.0,
          bottom: _measuredMetrics.measureHeight(4.0)),
      _measuredMetrics.measureAbsoluteFontSize(17.0,
          consistent: false),
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(16.0),
          end: _measuredMetrics.measureWidth(16.0),
          top: 0.0,
          bottom: _measuredMetrics.measureHeight(32.0)), // priceMargin
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // priceFontSize
      _measuredMetrics.measureHeight(-56.0,
          consistent: false), // cardLabelTopSpcing
      _measuredMetrics.measureHeight(-40.0,
          consistent: false), // cardLabelRightSpcing
      _measuredMetrics.measureHeight(136.0, consistent: false), // cardLabelSize
    );
  }

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


class _SubscriptionListCardDesignSpec extends SubscriptionListCardDesignSpec {
  _SubscriptionListCardDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.cardRadius,
    this.cardPadding,
    this.titleFontSize,
    this.subTitleMargin,
    this.subTitleFontSize,
    this.priceFontSize,
    this.cardLabelTopSpcing,
    this.cardLabelRightSpcing,
    this.cardLabelSize,
  );

  static final designMetrics = DesignMetrics.create(const Size(650.0, 124.0));

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

  @override
  final BorderRadiusDirectional cardRadius;

  @override
  final EdgeInsetsDirectional cardPadding;

  @override
  final double titleFontSize;

  @override
  final EdgeInsetsDirectional subTitleMargin;
 
  @override
  final double subTitleFontSize;

  @override
  final double priceFontSize;

  @override
  final double cardLabelTopSpcing;

  @override
  final double cardLabelRightSpcing;

  @override
  final Size cardLabelSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _SubscriptionListCardDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _SubscriptionListCardDesignSpec._(
      _measuredMetrics, offset,
      BorderRadiusDirectional.circular(
          _measuredMetrics.measureHeight(24.0)), // cardRadius
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureWidth(40.0),
          end: _measuredMetrics.measureWidth(40.0),
          top: 0.0,
          bottom: 0.0),
      _measuredMetrics.measureAbsoluteFontSize(32.0,
          consistent: false), // titleFontSize
      EdgeInsetsDirectional.only(
          start: 0.0,
          end: 0.0,
          top: _measuredMetrics.measureHeight(10.0),
          bottom: 0.0), // subTitleMargin
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false),
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // priceFontSize
      _measuredMetrics.measureHeight(-12.0,
          consistent: false), // cardLabelTopSpcing
      _measuredMetrics.measureHeight(20.0,
          consistent: false), // cardLabelRightSpcing
      Size(_measuredMetrics.measureWidth(126.0, consistent: false), _measuredMetrics.measureHeight(36.0, consistent: false)), // cardLabelSize
    );
  }

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