isAppleOS method

bool isAppleOS(
  1. BuildContext context
)

Whether the current platform is Apple OS. 当前平台是否为苹果系列系统

Implementation

bool isAppleOS(BuildContext context) => switch (context.theme.platform) {
      TargetPlatform.iOS || TargetPlatform.macOS => true,
      _ => false,
    };