title: How deep do you need to nest const constructors in dart?
body: <p>I've been trying to leverage <code>const</code> constructors more in my Flutter app lately and I'm curious how deep I need to include the <code>const</code> keyword. Take the following:</p>
  <pre class="lang-dart prettyprint-override"><code>const Text('foo', style: const TextStyle(fontSize: 12));
  </code></pre>
  <p>I know I can make the <code>Text</code> widget a const because it's a static string. I can also make the <code>TextStyle</code> a const. But do I need to even include <code>const</code> on the <code>TextStyle</code> if its parent <code>Text</code> is also a <code>const</code>?</p>
  <p>Additionally, if it is the case that I do not need to put a <code>const</code> inside a <code>const</code> and change it to the example below, will the second <code>TextStyle</code> be the same instance as the first?</p>
  <pre class="lang-dart prettyprint-override"><code>const Text('foo', style: TextStyle(fontSize: 12));
  
  
  /// is this TextStyle the same instance as above?
  Text(foo.bar, style: const TextStyle(fontSize: 12));
  </code></pre>
  <p>I'd really appreciate any input on this. I struggle to know if I should be littering the codebase with <code>const</code> or if it's a waste of my time. Thanks in advance!</p>