File constructor Null safety

File(
  1. {String? fileUrl,
  2. String? fileName,
  3. String? fileSize}
)

Implementation

factory File({
  $core.String? fileUrl,
  $core.String? fileName,
  $core.String? fileSize,
}) {
  final _result = create();
  if (fileUrl != null) {
    _result.fileUrl = fileUrl;
  }
  if (fileName != null) {
    _result.fileName = fileName;
  }
  if (fileSize != null) {
    _result.fileSize = fileSize;
  }
  return _result;
}