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