isIOS property

bool get isIOS

Returns true if the platform is iOS.

Implementation

static bool get isIOS =>
    !isWeb && defaultTargetPlatform == TargetPlatform.iOS;