gradient property
Applies this gradient to waveforms.
Use as below
import 'dart:ui' as ui show Gradient;
...
ui.Gradient.linear(
const Offset(70, 50),
Offset(MediaQuery.of(context).size.width / 2, 0),
[Colors.red, Colors.green],
),
```dart
Implementation
final Shader? gradient;