platormSpecificValueNulable<T> static method

T? platormSpecificValueNulable<T>({
  1. T? web,
  2. T? android,
  3. 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;
  }
}