decisionBackendFactory top-level property

Future<DecisionBackend> Function(Map<String, Object?> options)? decisionBackendFactory
getter/setter pair

Creates Google's Decision Maker from options named as in Google's JavaScript API (maxNumTokens, delegate), plus modelBytes (a Uint8List) or modelPath (a URL).

Installed by this package's web code in browsers; null where the package runs Google's runtime itself.

Implementation

Future<DecisionBackend> Function(Map<String, Object?> options)?
decisionBackendFactory;