isIos property
bool
get
isIos
判断是否为 ios 平台
Implementation
// bool get isIos =>
// myPlatform.whenOrNull(ios: () => true, macos: () => true) ?? false;
bool get isIos => switch (this) {
IosPlatform() => true,
MacosPlatform() => true,
_ => false
};