disposeMixInstance method

Future<void> disposeMixInstance(
  1. String typeName,
  2. MixInstance instance
)

Implementation

Future<void> disposeMixInstance(String typeName, MixInstance instance) => _synchronized(
      () => _channel.invokeMethod(
        "destroy",
        {
          "typeName": typeName,
          "hash": instance.hashCode,
        },
      ),
    ).then(
      (_) {
        final key = _key(typeName, instance.hashCode);
        _cachesMap.remove(key);
      },
    );