getDoubleByIdOrNull method

double? getDoubleByIdOrNull(
  1. String id, {
  2. double? defaultValue,
})

Implementation

double? getDoubleByIdOrNull(String id, {double? defaultValue}) {
  if (id.isEmpty) return defaultValue;
  return findByIdOrNull(id)?.typedValue<double>() ?? defaultValue;
}