Skip to content

Commit ec70a78

Browse files
committed
chore: 👨‍💻Add assertion for title and description both can't be null
1 parent e243f42 commit ec70a78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/showcase/showcase.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ class Showcase extends StatefulWidget {
136136
onBarrierClick == null || disableBarrierInteraction == false,
137137
"can't use `onBarrierClick` & `disableBarrierInteraction` property "
138138
'at same time',
139+
),
140+
assert(
141+
title != null || description != null,
142+
'title or description can\'t be null. Provide at least one of them',
139143
);
140144

141145
/// Creates a showcase with a completely custom tooltip widget.

0 commit comments

Comments
 (0)