paint method

  1. @override
void paint(
  1. PaintingContext context,
  2. Offset offset
)
override

Implementation

@override
void paint(PaintingContext context, Offset offset) {
  _ensureStylesCached();
  final int w = size!.width;
  _paintBackground(context, offset.x.toInt(), offset.y.toInt(), w);
  if (value != null) {
    _paintDeterminate(context, offset.x.toInt(), offset.y.toInt(), w);
  } else {
    _paintIndeterminate(context, offset.x.toInt(), offset.y.toInt(), w);
  }
}