boolToInt function

int boolToInt(
  1. bool? data
)

origin: kt_ifm_gtid_mob/lib/global.dart union-of: stm_portal_mob/lib/global.dart author: anovsiradj, opencode-go/glm-5.2 version: 2025-03-03, revised: 2026-08-17

note: source typo booToInt fixed to boolToInt (D13).

Implementation

int boolToInt(bool? data) {
  data ??= false;
  return data ? 1 : 0;
}