getTextStyle method

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

Implementation

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