Creates a radial gradient centered at center that ends at radius
distance from the center. If colorStops is provided, colorStops[i] is
a number from 0 to 1 that specifies where color[i] begins in the
gradient. If colorStops is not provided, then two stops at 0.0 and 1.0
are implied. The behavior before and after the radius is described by the
tileMode argument.
Source
Gradient.radial(Point center,
double radius,
List<Color> colors,
[List<double> colorStops = null,
TileMode tileMode = TileMode.clamp]) {
_validateColorStops(colors, colorStops);
final Int32List colorsBuffer = _encodeColorList(colors);
final Float32List colorStopsBuffer = colorStops == null ? null : new Float32List.fromList(colorStops);
_constructor();
_initRadial(center.x, center.y, radius, colorsBuffer, colorStopsBuffer, tileMode.index);
}