From 0566832f5af708d3350e8efa9f65f2e592dea84e Mon Sep 17 00:00:00 2001 From: Sahil-simform Date: Tue, 23 Sep 2025 22:58:38 +0530 Subject: [PATCH] =?UTF-8?q?chore!:=20=F0=9F=91=A8=E2=80=8D=F0=9F=92=BB=20A?= =?UTF-8?q?dd=20assertion=20for=20title=20and=20description=20both=20can't?= =?UTF-8?q?=20be=20null?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/src/showcase/showcase.dart | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/src/showcase/showcase.dart b/lib/src/showcase/showcase.dart index 273dbc66..0c6ec5a6 100644 --- a/lib/src/showcase/showcase.dart +++ b/lib/src/showcase/showcase.dart @@ -136,6 +136,10 @@ class Showcase extends StatefulWidget { onBarrierClick == null || disableBarrierInteraction == false, "can't use `onBarrierClick` & `disableBarrierInteraction` property " 'at same time', + ), + assert( + title != null || description != null, + 'title or description can\'t be null. Provide at least one of them', ); /// Creates a showcase with a completely custom tooltip widget.