imports method

Future<List<WasmImport>> imports()

The module's imports, with their declared types.

Implementation

Future<List<WasmImport>> imports() async => [
  for (final entry in (await _request('moduleImports'))['value']! as List)
    _decodeImport((entry as Map).cast<String, Object?>()),
];