// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'guru_list_tile.dart';

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

class _GuruListTileDesignSpec extends GuruListTileDesignSpec {
  _GuruListTileDesignSpec._(
    this.measuredMetrics,
    this.specOffset,
    this.itemPadding,
    this.switchItemPadding,
    this.leadingPadding,
    this.groupHeaderPadding,
    this.groupTitleFontSize,
    this.descriptionPadding,
    this.descriptionFontSize,
    this.leadingSize,
    this.titlePadding,
    this.titleFontSize,
    this.summaryTopSpacing,
    this.summaryFontSize,
    this.trailingSize,
    this.switchBarSize,
    this.dividerHeight,
    this.dividerIndent,
  );

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

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

  @override
  final EdgeInsetsDirectional itemPadding;

  @override
  final EdgeInsetsDirectional switchItemPadding;

  @override
  final EdgeInsetsDirectional leadingPadding;

  @override
  final EdgeInsetsDirectional groupHeaderPadding;

  @override
  final double groupTitleFontSize;

  @override
  final EdgeInsetsDirectional descriptionPadding;

  @override
  final double descriptionFontSize;

  @override
  final double leadingSize;

  @override
  final EdgeInsetsDirectional titlePadding;

  @override
  final double titleFontSize;

  @override
  final double summaryTopSpacing;

  @override
  final double summaryFontSize;

  @override
  final double trailingSize;

  @override
  final Size switchBarSize;

  @override
  final double dividerHeight;

  @override
  final double dividerIndent;

  @override
  final MeasuredMetrics measuredMetrics;

  @override
  final Offset specOffset;

  @override
  Size get measuredSize => measuredMetrics.size;

  static _GuruListTileDesignSpec _create(
    Size measuredSize, {
    Offset offset = Offset.zero,
  }) {
    final _measuredMetrics = designMetrics.measure(measuredSize);
    return _GuruListTileDesignSpec._(
      _measuredMetrics, offset,
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureHorizontal(28.0),
          end: _measuredMetrics.measureHorizontal(32.0),
          top: _measuredMetrics.measureVertical(40.0),
          bottom: _measuredMetrics.measureVertical(40.0)), // itemPadding
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureHorizontal(28.0),
          end: _measuredMetrics.measureHorizontal(32.0),
          top: 0.0,
          bottom: 0.0), // switchItemPadding
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureHorizontal(12.0),
          end: 0.0,
          top: 0.0,
          bottom: 0.0), // leadingPadding
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureHorizontal(40.0),
          end: 0.0,
          top: _measuredMetrics.measureVertical(56.0),
          bottom: _measuredMetrics.measureVertical(28.0)), // groupHeaderPadding
      _measuredMetrics.measureAbsoluteFontSize(26.0,
          consistent: false), // groupTitleFontSize
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureHorizontal(48.0),
          end: 0.0,
          top: _measuredMetrics.measureVertical(16.0),
          bottom: _measuredMetrics.measureVertical(48.0)), // descriptionPadding
      _measuredMetrics.measureAbsoluteFontSize(24.0,
          consistent: false), // descriptionFontSize
      _measuredMetrics.measureHeight(48.0, consistent: false), // leadingSize
      EdgeInsetsDirectional.only(
          start: _measuredMetrics.measureHorizontal(20.0),
          end: _measuredMetrics.measureHorizontal(20.0),
          top: 0.0,
          bottom: 0.0), // titlePadding
      _measuredMetrics.measureAbsoluteFontSize(32.0,
          consistent: false), // titleFontSize
      _measuredMetrics.measureAbsoluteFontSize(4.0,
          consistent: false), // summaryTopSpacing
      _measuredMetrics.measureAbsoluteFontSize(20.0,
          consistent: false), // summaryFontSize
      _measuredMetrics.measureHeight(48.0, consistent: false), // trailingSize
      Size(_measuredMetrics.measureHeight(72.0) * 1.44444444,
          _measuredMetrics.measureHeight(72.0)), // switchBarSize
      _measuredMetrics.measureHeight(1.0, consistent: false), // dividerHeight
      _measuredMetrics.measureHorizontal(40.0), // dividerIndent
    );
  }

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