obscure method
Obscures the testable widget using the given color. This provides a way to obscure / exclude dynamic widgets from golden screenshot calculations.
Implementation
Future<void> obscure(Color? color) async {
_obscureColor = color ?? Colors.transparent;
if (mounted == true) {
setState(() {});
await Future.delayed(Duration(milliseconds: 300));
}
}