getResolvedValueFromTheme function Null safety
- BuildContext context,
- dynamic k,
- Map<
String, dynamic> v, - dynamic val
Implementation
Map<String, dynamic> getResolvedValueFromTheme(
BuildContext context, k, Map<String, dynamic> v, val) {
dynamic theme =
NativeBaseProvider.of(context).toJson()[propConfig[k]["scale"]];
return {
k: theme?.toJson()[val] ??
(val != null ? convertToDouble(val.toString()) : val),
};
}