Multi type support Platform Selector
- with
selector
String result = selector(
android: 'hello Android',
ios: 'hello iOS',
fuchsia: 'hello Fuchsia',
linux: 'hello Linux',
mac: 'hello MacOS',
windows: 'hello Windows',
);
- with
selector
String? result = optionalSelector(
android: 'hello Android',
ios: 'hello iOS',
fuchsia: 'hello Fuchsia',
);
String result = deviceSelector(
mobile: 'hello Mobile',
desktop: 'hello Desktop',
web: 'hello Web',
);
String admobKey = androidOrElse('android-key', 'iOS-key');
String iosPreferredKey = iosOrElse('iOS-key', 'android-key');
print('isDesktop: $isDesktop')
print('isMobile: $isMobile')