loadPngFromAsset method

Future<Image> loadPngFromAsset(
  1. String name,
  2. int height,
  3. int width
)

Загрузить PNG изображение из assets.

Implementation

Future<sdk.Image> loadPngFromAsset(String name, int height, int width) async {
  final data = await rootBundle.load(name);
  return _makeImage(data, sdk.ImageFormat.pNG, height, width);
}