bindWitWorld method

WASIComponentWitAdapterProgram bindWitWorld(
  1. WASIComponentWitDocument document, {
  2. String? worldName,
  3. Set<String> features = const {},
  4. Map<String, WASIComponentWitAdapterCallback> imports = const <String, WASIComponentWitAdapterCallback>{},
  5. 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);
}