// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'guru_slider_bar.dart';

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

class _GuruSliderBarDesignSpec extends GuruSliderBarDesignSpec {
  _GuruSliderBarDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.sliderBarSize,
    this.barBottomInset,
    this.radius,
    this.padding,
    this.strokeWidth,
    this.anchorIconSize,
    this.multipleImageSize,
    this.multipleTextSize,
  );

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

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

  @override
  final Size sliderBarSize;

  @override
  final double barBottomInset;

  @override
  final double radius;

  @override
  final double padding;

  @override
  final double strokeWidth;

  @override
  final Size anchorIconSize;

  @override
  final double multipleImageSize;

  @override
  final double multipleTextSize;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruSliderBarDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruSliderBarDesignSpec._(
      _measuredMetrics, offset,
      Size(_measuredMetrics.measureWidth(562.0),
          _measuredMetrics.measureHeight(120.0)), // sliderBarSize
      _measuredMetrics.measureHeight(38.0, consistent: false), // barBottomInset
      _measuredMetrics.measureHeight(41.0, consistent: false), // radius
      _measuredMetrics.measureVertical(4.0), // padding
      _measuredMetrics.measureHeight(4.0, consistent: false), // strokeWidth
      Size(_measuredMetrics.measureHeight(72.0),
          _measuredMetrics.measureHeight(56.0)), // anchorIconSize
      _measuredMetrics.measureHeight(60.0,
          consistent: false), // multipleImageSize
      _measuredMetrics.measureHeight(60.0,
          consistent: false), // multipleTextSize
    );
  }

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