isDarwin property

bool get isDarwin

Whether the current platform is ios or macos.

Implementation

bool get isDarwin => Platform.isIOS || Platform.isMacOS;