getTextStyle method

TextStyle? getTextStyle(
  1. Key? key
)

Returns the TextStyle for the given key. If key is null, the standard key will be used. If key still is not found, null is returned.

Implementation

TextStyle? getTextStyle(Key? key) {
  key ??= _standardKey;

  if (styleMap != null && styleMap!.containsKey(key)) {
    return styleMap![key];
  } else {
    return null;
  }
}