maxScale property

double get maxScale

The maximum scale at which the layer's contents will be visible.

The layer is only visible when you are zoomed further out than the maxScale.