labelComponentFontSizeSC<TOptionType, TValue> method

double labelComponentFontSizeSC<TOptionType, TValue>(
  1. String selectedOption,
  2. Map<String, double> branches, [
  3. double? defaultValue
])

Implementation

double labelComponentFontSizeSC<TOptionType, TValue>(
  String selectedOption,
  Map<String, double> branches, [
  double? defaultValue,
]) {
  if (!branches.containsKey(selectedOption)) {
    return defaultValue!;
  }
  return branches[selectedOption]!;
}