getIconColor method
- {required AppModel appModel,
- required DictionaryHeading heading}
override
If non-null, sets a custom enabled color that this action should have for a certain condition in the application. By default, this is the foreground color.
Implementation
@override
Future<Color?> getIconColor({
required AppModel appModel,
required DictionaryHeading heading,
}) async {
if (appModel.isTermInStash(heading.term)) {
return Colors.red;
} else {
return null;
}
}