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