fromAsset method

  1. @Deprecated("Use fromAssetImage instead")
BitmapDescriptor fromAsset(
  1. String assetName,
  2. {String package}
@Deprecated("Use fromAssetImage instead")

Creates a BitmapDescriptor using the name of a bitmap image in the assets directory.

Use fromAssetImage. This method does not respect the screen dpi when picking an asset image.


@Deprecated("Use fromAssetImage instead")
static BitmapDescriptor fromAsset(String assetName, {String package}) {
  if (package == null) {
    return BitmapDescriptor._(<dynamic>['fromAsset', assetName]);
  } else {
    return BitmapDescriptor._(<dynamic>['fromAsset', assetName, package]);