putTextStyle method

void putTextStyle(
  1. String key,
  2. TextStyle value
)

Put a text style value

Implementation

void putTextStyle(String key, TextStyle value) {
  if (key.isEmpty) {
    throw ArgumentError('Text style key cannot be empty');
  }
  updateTextStyle((textStyle) => textStyle.put(key, value));
}