We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
_throwIfNoContext
1 parent 446bc7a commit 35e8c51Copy full SHA for 35e8c51
lib/src/core/toast.dart
@@ -180,6 +180,9 @@ void dismissAllToast({bool showAnim = false}) {
180
}
181
182
void _throwIfNoContext(Iterable<BuildContext> contexts, String methodName) {
183
+ if (contexts.isNotEmpty) {
184
+ return;
185
+ }
186
final List<DiagnosticsNode> information = <DiagnosticsNode>[
187
ErrorSummary('No OKToast widget found.'),
188
ErrorDescription(
0 commit comments