load static method

Future<SlideAsset> load(
  1. File file
)

Implementation

static Future<SlideAsset> load(File file) async {
  final asset = await maybeLoad(file);
  return asset ?? (throw Exception('Invalid asset file: ${file.path}'));
}