checkTypeValue function

bool checkTypeValue(
  1. ConfigType t,
  2. dynamic v
)

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,
  };
}