resolve static method
Resolves color from FlyStyle and FlyThemeData into Color
Implementation
static Color? resolve(BuildContext context, FlyStyle style) {
if (style.color == null) return null;
try {
final colors = FlyTheme.of(context).colors;
return FlyValue.resolveColor(style.color, context, colors);
} catch (e) {
throw ArgumentError('Failed to resolve color "${style.color}": $e');
}
}