isAppleOS function

bool isAppleOS([
  1. TargetPlatform? targetPlatform
])

Implementation

bool isAppleOS([TargetPlatform? targetPlatform]) {
  targetPlatform ??= defaultTargetPlatform;
  return {
    TargetPlatform.macOS,
    TargetPlatform.iOS,
  }.contains(targetPlatform);
}