View constructor

View({
  1. Paint? paint,
  2. int zIndex = 0,
})

Implementation

View({Paint? paint, this.zIndex = 0}) {
  if (paint != null) {
    this.paint = paint;
  } else {
    this.paint = Paint();
  }
}