isValid property
(Internal usage) Determines whether the filter is valid and can be applied.
This getter returns true
if the width of the outline is greater than 0
and the alpha channel of the outline color is greater than 0
.
Implementation
@override
bool get isValid {
return width > 0 && color.alpha > 0;
}