opacity method
Wraps this widget in an Opacity.
Implementation
Widget opacity(double value) {
if (value.isNaN || value < 0 || value > 1) {
throw ArgumentError.value(value, 'value', 'must be between 0 and 1');
}
return Opacity(opacity: value, child: this);
}