isOhos top-level property

bool isOhos
getter/setter pair

鸿蒙原生平台。使用系统名称比较,兼容标准 Flutter SDK。

Implementation

bool isOhos = kIsWeb ? false : Platform.operatingSystem == 'ohos';