appUpdatePlanDealerApiFamily top-level property

AutoDisposeFutureProvider<AppUpdatePlanDTO> appUpdatePlanDealerApiFamily
final

Implementation

final appUpdatePlanDealerApiFamily =
    FutureProvider.autoDispose<AppUpdatePlanDTO>((ref) async {
  final version = await ref.watch(versionProvider.future);
  final buildNumber = await ref.watch(buildNumberProvider.future);

  return ref
      .watch(energyManagementV3ApiProvider.future)
      .then(
        (api) => api.kemApiV3DealerAppUpdatePlanGet(
          version: version,
          buildNumber: int.parse(buildNumber),
        ),
      )
      .then(responseToValue);
});