checkTypeValue function
Implementation
bool checkTypeValue(ConfigType t, dynamic v) {
return switch (t) {
ConfigType.boolean => v is ConfigBooleanValue,
ConfigType.slider => v is ConfigSliderValue,
ConfigType.numeric => v is ConfigNumericValue,
ConfigType.text => v is ConfigTextValue,
};
}