fillRect method
Implementation
void fillRect(Canvas canvas, Color color, int left, int top, int width, int height) {
try {
final rect = Rect.fromLTWH(left.toDouble(), top.toDouble(), width.toDouble(), height.toDouble());
final paint = Paint()
..color = color
..style = PaintingStyle.fill;
canvas.drawRect(rect, paint);
} catch (e) {
print("DiveAudioMeterPainter.fillRect exception: $e");
}
}