resolveFlexGrow static method
Resolves flex grow value from FlyStyle
Implementation
static int? resolveFlexGrow(BuildContext context, FlyStyle style) {
if (style.grow == null) return null;
if (style.grow is int) {
return style.grow;
}
if (style.grow is String) {
return int.tryParse(style.grow);
}
return null;
}