From c313083a884ea1399b8520b7c599dced4b583d56 Mon Sep 17 00:00:00 2001 From: Parker Lougheed Date: Mon, 22 May 2023 19:10:11 -0500 Subject: [PATCH] Remove null-safety argument from DartPad doc samples (#127345) Removes the `null_safety=true` query parameter from DartPad samples in the API docs, since all DartPad channels only support null safety now and the parameter does nothing. ## Test Removing code, but updates the check in the dartdoc tool for the removal. --- dev/snippets/config/skeletons/dartpad-sample.html | 2 +- dev/tools/dartdoc.dart | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/dev/snippets/config/skeletons/dartpad-sample.html b/dev/snippets/config/skeletons/dartpad-sample.html index 6913021cd8..9afc6233d9 100644 --- a/dev/snippets/config/skeletons/dartpad-sample.html +++ b/dev/snippets/config/skeletons/dartpad-sample.html @@ -13,7 +13,7 @@

{@end-inject-html} \ No newline at end of file diff --git a/dev/tools/dartdoc.dart b/dev/tools/dartdoc.dart index 8bf6c484ea..b60c96133c 100644 --- a/dev/tools/dartdoc.dart +++ b/dev/tools/dartdoc.dart @@ -444,7 +444,6 @@ void sanityCheckDocs([Platform platform = const LocalPlatform()]) { final List argumentRegExps = [ r'split=\d+', r'run=true', - r'null_safety=true', r'sample_id=widgets\.Listener\.\d+', 'sample_channel=$expectedBranch', 'channel=$expectedBranch',