// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'button_design_model.dart';

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

class _ButtonDesignSpec extends ButtonDesignSpec {
  _ButtonDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.buttonS1,
    this.buttonS2,
    this.buttonS3,
    this.buttonS4,
    this.buttonS5,
  );

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

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

  @override
  final Size buttonS1;

  @override
  final Size buttonS2;

  @override
  final Size buttonS3;

  @override
  final Size buttonS4;

  @override
  final Size buttonS5;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;
  static _ButtonDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _ButtonDesignSpec._(
      _measuredMetrics, offset,
      Size(_measuredMetrics.measureWidth(630.0), _measuredMetrics.measureHeight(104.0, consistent: true)),
      Size(_measuredMetrics.measureWidth(542.0), _measuredMetrics.measureHeight(96.0, consistent: true)),
      Size(_measuredMetrics.measureWidth(480.0), _measuredMetrics.measureHeight(80.0, consistent: true)),
      Size(_measuredMetrics.measureWidth(400.0), _measuredMetrics.measureHeight(72.0, consistent: true)),
      Size(_measuredMetrics.measureWidth(200.0), _measuredMetrics.measureHeight(60.0, consistent: true))
    );
  }

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