resolve abstract method

Future<ResolvedHfModel> resolve(
  1. String repo, {
  2. String? token,
  3. String? platform,
  4. PreferredBackend? preferredBackend,
})

Read the repo's deployment metadata and resolve the variant + defaults for the current device.

platform is a lowercase platform key — android, ios, macos, windows, linux, web, or unknown for an unmapped host — so the resolver can honour per-platform recommendations. A resolver should treat unknown as "no per-platform recommendation" and fall back to its default. preferredBackend is an optional caller hint the resolver may prefer when the metadata lists it.

Implementation

Future<ResolvedHfModel> resolve(
  String repo, {
  String? token,
  String? platform,
  PreferredBackend? preferredBackend,
});