title: The argument type 'Object' can't be assigned to the parameter type 'ImageProvider<Object>'
body: <p>I just updated to Dart2 and Flutter sdk: '&gt;=2.12.0 &lt;3.0.0' and now this if statement breaks:</p>
  <pre><code> decoration: new BoxDecoration(
                shape: BoxShape.circle,
                color: Colors.blueAccent,
                border: Border.all(
                    color: Colors.blueAccent,
                    width: 20.0,
                    style: BorderStyle.solid),
                image: new DecorationImage(
                  fit: BoxFit.cover,
                  image: myMarkerThumb != 'noImage'
                      ? NetworkImage(myMarkerThumb)
                      : AssetImage('assets/images/noImageAvailable.png'),
                ),
              ),
  </code></pre>
  <p><em>The argument type 'Object' can't be assigned to the parameter type 'ImageProvider'.
  ),</em></p>
  <p><a href="https://i.stack.imgur.com/V02gj.png" rel="noreferrer"><img src="https://i.stack.imgur.com/V02gj.png" alt="enter image description here" /></a></p>
  <p>I'm just starting with flutter and have no idea where to look else.</p>