Unverified Commit 19990c2d authored by Roshan Prakash Raut's avatar Roshan Prakash Raut Committed by GitHub

added debugDisableShadows usage explaination (#72008)

parent 424a122e
......@@ -13,6 +13,12 @@ import 'package:flutter/foundation.dart';
/// This is useful when writing golden file tests (see [matchesGoldenFile]) since
/// the rendering of shadows is not guaranteed to be pixel-for-pixel identical from
/// version to version (or even from run to run).
///
/// In those tests, this is usually set to false at the beginning of a test and back
/// to true before the end of the test case.
///
/// If it remains true when the test ends, an exception is thrown to avoid state
/// leaking from one test case to another.
bool debugDisableShadows = false;
/// Signature for a method that returns an [HttpClient].
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment