getUpgraderStore method

UpgraderStore? getUpgraderStore(
  1. UpgraderOS upgraderOS
)

Implementation

UpgraderStore? getUpgraderStore(UpgraderOS upgraderOS) {
  switch (upgraderOS.currentOSType) {
    case UpgraderOSType.android:
      return onAndroid?.call();
    case UpgraderOSType.fuchsia:
      return onFuchsia?.call();
    case UpgraderOSType.ios:
      return oniOS?.call();
    case UpgraderOSType.linux:
      return onLinux?.call();
    case UpgraderOSType.macos:
      return onMacOS?.call();
    case UpgraderOSType.web:
      return onWeb?.call();
    case UpgraderOSType.windows:
      return onWindows?.call();
  }
}