static bool shouldClipSurface(double? surfaceOpacity) { if (surfaceOpacity == null) { return true; } return surfaceOpacity < 1; }