ledgerRing function

void ledgerRing(
  1. Canvas canvas,
  2. Offset at,
  3. Color color,
  4. Color fill, {
  5. double radius = 2.4,
  6. double width = 1.1,
})

art.ring: a ring of color width wide round a fill disc.

Implementation

void ledgerRing(
  Canvas canvas,
  Offset at,
  Color color,
  Color fill, {
  double radius = 2.4,
  double width = 1.1,
}) {
  canvas
    ..drawCircle(at, radius, Paint()..color = fill)
    ..drawCircle(at, radius, ledgerStroke(color, width));
}