diff --git a/packages/flutter/lib/src/foundation/assertions.dart b/packages/flutter/lib/src/foundation/assertions.dart index 0ee4130334f3..66103bf2e218 100644 --- a/packages/flutter/lib/src/foundation/assertions.dart +++ b/packages/flutter/lib/src/foundation/assertions.dart @@ -1009,7 +1009,7 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti isInDebugMode = true; return true; }()); - final bool reportError = isInDebugMode || !details.silent; // could be null + final bool reportError = isInDebugMode || !details.silent; if (!reportError && !forceReport) { return; }