getState method
Implementation
MaterialStateProperty<TextStyle> getState() =>
MaterialStateProperty.resolveWith<TextStyle>(
(Set<MaterialState> states) {
if (states.contains(MaterialState.disabled)) {
return copyWith(color: Colors.grey);
}
return this;
},
);