putFontWeight method

void putFontWeight(
  1. String key,
  2. FontWeight value
)

Put a font weight value

Implementation

void putFontWeight(String key, FontWeight value) {
  if (key.isEmpty) {
    throw ArgumentError('Font weight key cannot be empty');
  }
  updateFontWeight((fontWeight) => fontWeight.put(key, value));
}