getTextStyle method Null safety

MaterialStateProperty<TextStyle?>? getTextStyle(
  1. BuildContext context
)

Implementation

MaterialStateProperty<TextStyle?>? getTextStyle(BuildContext context) {
  return MaterialStateProperty.resolveWith((states) =>
      textStyle ?? _getMaterialStyle(context)?.textStyle?.resolve(states));
}