resolveMaxHeight static method

double? resolveMaxHeight(
  1. BuildContext context,
  2. FlyStyle style
)

Resolves max height from FlyStyle and FlyTheme into double

Implementation

static double? resolveMaxHeight(BuildContext context, FlyStyle style) {
  if (style.maxH == null) return null;

  try {
    final spacing = FlyTheme.of(context).spacing;
    return _resolveValue(style.maxH, context, spacing);
  } catch (e) {
    throw ArgumentError('Failed to resolve max height: $e');
  }
}