getHeight static method

double getHeight({
  1. bool hasBreadcrumb = false,
  2. bool hasSubtitle = false,
})

Implementation

static double getHeight({
  bool hasBreadcrumb = false,
  bool hasSubtitle = false,
}) {
  const titleHeight = kToolbarHeight;
  const breadcrumbHeight =
      8.0 + kMinInteractiveDimension * _breadcrumbHeightFactor;
  final subtitleHeight = (hasBreadcrumb ? 2.0 : 18.0) +
      _getSubtitleSpacing(hasBreadcrumb: hasBreadcrumb);

  return titleHeight +
      (hasBreadcrumb ? breadcrumbHeight : 0.0) +
      (hasSubtitle ? subtitleHeight : 0.0);
}