AppInfo constructor

AppInfo({
  1. Platform? platform,
  2. Mode? mode,
  3. String? deviceName,
  4. int? autoApiVersion,
  5. double? devicePixelRatio,
  6. double? textScaleFactor,
  7. double? physicalHeight,
  8. double? physicalWidth,
})

Implementation

factory AppInfo({
  Platform? platform,
  Mode? mode,
  $core.String? deviceName,
  $core.int? autoApiVersion,
  $core.double? devicePixelRatio,
  $core.double? textScaleFactor,
  $core.double? physicalHeight,
  $core.double? physicalWidth,
}) {
  final _result = create();
  if (platform != null) {
    _result.platform = platform;
  }
  if (mode != null) {
    _result.mode = mode;
  }
  if (deviceName != null) {
    _result.deviceName = deviceName;
  }
  if (autoApiVersion != null) {
    _result.autoApiVersion = autoApiVersion;
  }
  if (devicePixelRatio != null) {
    _result.devicePixelRatio = devicePixelRatio;
  }
  if (textScaleFactor != null) {
    _result.textScaleFactor = textScaleFactor;
  }
  if (physicalHeight != null) {
    _result.physicalHeight = physicalHeight;
  }
  if (physicalWidth != null) {
    _result.physicalWidth = physicalWidth;
  }
  return _result;
}