resolveHeight static method

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

Resolves height from FlyStyle and FlyTheme into double

Implementation

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

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