title: Flutter Failed to decode image. The provided image must be a Bitmap., null)
body: <p>Creating custom Icon in Google Map in flutter shows error.</p>
  
  <p>My pubspec.yaml file</p>
  
  <pre><code>assets:
    - assets/truck.png
  </code></pre>
  
  <p>My Code is:</p>
  
  <pre><code>void getCustomIcon() async {
      customIcon = await BitmapDescriptor.fromAssetImage(
          ImageConfiguration(
            devicePixelRatio: 2.5,
      ),
      'assets/truck.png');
  }
  </code></pre>
  
  <p>Error is:</p>
  
  <pre><code>[ERROR:flutter/lib/ui/ui_dart_state.cc(157)] Unhandled Exception: PlatformException(error, Failed to decode image. The provided image must be a Bitmap., null)
  E/flutter (15757): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:569:7)
  E/flutter (15757): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:321:33)
  </code></pre>