hasForegroundColor method
Expects that foregroundColor of FloatingActionButton equals (==) value
.
Example usage:
spot<FloatingActionButton>().existsOnce().hasForegroundColor(Colors.red);
Implementation
WidgetMatcher<FloatingActionButton> hasForegroundColor(Color? value) {
return hasDiagnosticProp<Color>('foregroundColor',
(it) => value == null ? it.isNull() : it.equals(value));
}