ConvertToValueOrDefault method

Object? ConvertToValueOrDefault(
  1. String? stringValue
)
Converts a String to value consistent with type (or uses the default value if the String is null or empty). String to convert to a value.

Implementation

Object? ConvertToValueOrDefault(String? stringValue) {
  return (stringValue == null || stringValue.isEmpty)
      ? DefaultValue
      : ConvertToValue(stringValue);
}