resolveMinWidth static method

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

Resolves min width from FlyStyle and FlyTheme into double

Implementation

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

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