load static method

Future<DFImageSprite> load(
  1. String src
)

加载图片资源

Implementation

static Future<DFImageSprite> load(String src) async {
  ui.Image image = await DFAssetsLoader.loadImage(src);
  return DFImageSprite(image, rect: DFRect(0, 0, image.width.toDouble(), image.height.toDouble()));
}