formatUiFagValue static method

int formatUiFagValue(
  1. UIFAG? status
)

Implementation

static int formatUiFagValue(UIFAG? status) {
  switch (status) {
    case UIFAG.systemUiFalgLowProfile:
      return 1;
    case UIFAG.systemUiFalgHideNavigation:
      return 2;
    case UIFAG.systemUiFalgFullscreen:
      return 4;
    case UIFAG.systemUiFalgLayoutStable:
      return 256;
    case UIFAG.systemUiFalgLayoutHideNavigtion:
      return 512;
    case UIFAG.systemUiFalgLayoutFullscreen:
      return 1024;
    case UIFAG.systemUiFalgImmersive:
      return 2048;
    case UIFAG.systemUiFalgImmersiveSticky:
      return 4096;
    case UIFAG.systemUiFalgLightStatusBar:
      return 8192;
    default:
      return 16;
  }
}