load method

  1. @override
Future<Uint8List> load(
  1. String modulePath
)
override

Implementation

@override
Future<Uint8List> load(String modulePath) async {
  final response = await http.get(Uri.parse(modulePath));
  if (response.statusCode != 200) {
    throw Exception('Failed to load module: $modulePath');
  }
  return response.bodyBytes;
}