discontinuedPackage os_detect has been discontinued and replaced by platform.

isFuchsia property

bool get isFuchsia

Whether the operating system is a version of Fuchsia.

Identified by id being the string fuchsia.

Implementation

bool get isFuchsia => _osId is FuchsiaOS;