putRadius method

void putRadius(
  1. String key,
  2. double value
)

Put a radius value

Implementation

void putRadius(String key, double value) {
  if (key.isEmpty) {
    throw ArgumentError('Radius key cannot be empty');
  }
  if (value < 0) {
    throw ArgumentError('Radius value cannot be negative: $value');
  }
  updateRadius((radius) => radius.put(key, value));
}