EngineCreateResult typedef

EngineCreateResult = ({int address, ({Set<String>? after, Set<String>? before})? banks, int code, String? message})

What the engine's isolate hands back: the engine's address (0 when litert_lm_engine_create returned NULL), LiteRT-LM's last error for a failed create, and the weight banks listed around a successful one.

Implementation

typedef EngineCreateResult = ({
  int address,
  int code,
  String? message,
  ({Set<String>? before, Set<String>? after})? banks,
});