getStyle method Null safety

TextStyle? getStyle(
  1. String style
)

Returns the TextStyle given the name style.

Implementation

static TextStyle? getStyle(String style){
  return textStyles[style];
}