bindWitWorld method
WASIComponentWitAdapterProgram
bindWitWorld(
- WASIComponentWitDocument document, {
- String? worldName,
- Set<
String> features = const {}, - Map<
String, WASIComponentWitAdapterCallback> imports = const <String, WASIComponentWitAdapterCallback>{}, - Map<
String, WASIComponentWitAdapterCallback> exports = const <String, WASIComponentWitAdapterCallback>{},
Prepares and binds a WIT world through this version profile.
Implementation
WASIComponentWitAdapterProgram bindWitWorld(
WASIComponentWitDocument document, {
String? worldName,
Set<String> features = const {},
Map<String, WASIComponentWitAdapterCallback> imports =
const <String, WASIComponentWitAdapterCallback>{},
Map<String, WASIComponentWitAdapterCallback> exports =
const <String, WASIComponentWitAdapterCallback>{},
}) {
return prepareWitWorld(
document,
worldName: worldName,
features: features,
).bindAdapters(imports: imports, exports: exports);
}