platormSpecificValueNulable<T> static method
T?
platormSpecificValueNulable<T>({
- T? web,
- T? android,
- T? ios,
Implementation
static T? platormSpecificValueNulable<T>({
T? web,
T? android,
T? ios,
}) {
if (kIsWeb) {
return web;
} else if (Platform.isAndroid) {
return android;
} else if (Platform.isIOS) {
return ios;
} else {
return null;
}
}