draw method

  1. @override
dynamic draw(
  1. Canvas canvas
)
override

Implementation

@override
draw(Canvas canvas) {
  if (position == null) {
    throw Exception(
        'position of the ImageNode is null. Make sure node has position');
  }
  if (image == null) {
    return;
    //throw Exception('Image of the ImageNode is null. Image has not yet been fetched');
  }

  canvas.drawImage(image!, position!, Paint());
}