title: Flutter: Assertion failed error in ClipPath() widget
body: <p>I'm getting this error.</p>
  <blockquote>
  <pre><code>Assertion failed: org-dartlang-sdk:///flutter_web_sdk/lib/_engine/engine/surface/path/path_ref.dart:831:12
  isValid
  is not true
  
  The relevant error-causing widget was
      ClipPath
  </code></pre>
  </blockquote>
  <p>The dependency I'm using is: <code>flutter_custom_clippers: ^1.1.1</code></p>
  <p>Whenever I restart or do a hot refresh, UI builds properly but after few seconds I get this error in the debug console.</p>
  <p>The following is my widget structure.</p>
  <pre><code>ClipPath(
        clipper: WaveClipperTwo(flip: true, reverse: true),
        child: Container(
          padding: EdgeInsets.all(10),
          width: double.infinity,
          height: 350,
          color: Colors.black87,
          child: ...
          )
  );
  </code></pre>
  <p>How can I solve this error.</p>