From fef7d827d6e22830ee6c88e8260f118a6b3fbcd9 Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 10 Aug 2017 17:20:59 -0700 Subject: [PATCH] Allow infinite cull rectangles on a Canvas (#3975) --- lib/ui/painting.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ui/painting.dart b/lib/ui/painting.dart index ef7154c01f..d1b1a2ecab 100644 --- a/lib/ui/painting.dart +++ b/lib/ui/painting.dart @@ -1408,7 +1408,7 @@ class Canvas extends NativeFieldWrapperClass2 { assert(recorder != null); if (recorder.isRecording) throw new ArgumentError('"recorder" must not already be associated with another Canvas.'); - assert(_rectIsValid(cullRect)); + assert(cullRect != null); _constructor(recorder, cullRect.left, cullRect.top, cullRect.right, cullRect.bottom); } void _constructor(PictureRecorder recorder, -- GitLab