resolveTextStyle static method
      
TextStyle
resolveTextStyle({ 
    
    
- required bool isEnabled,
- required TextStyle style,
- required WidgetStateProperty<Color?> color,
Implementation
static TextStyle resolveTextStyle({
  required bool isEnabled,
  required TextStyle style,
  required WidgetStateProperty<Color?> color,
}) {
  return style.copyWith(
    color: color.resolve({
      if (!isEnabled) WidgetState.disabled,
    }),
  );
}