resolveMaxWidth static method
Resolves max width from FlyStyle and FlyTheme into double
Implementation
static double? resolveMaxWidth(BuildContext context, FlyStyle style) {
if (style.maxW == null) return null;
try {
final spacing = FlyTheme.of(context).spacing;
return _resolveValue(style.maxW, context, spacing);
} catch (e) {
throw ArgumentError('Failed to resolve max width: $e');
}
}