FileMessageParams.withUrl constructor Null safety

FileMessageParams.withUrl(
  1. String fileUrl,
  2. {String? mimeType,
  3. int? size,
  4. String? name}
)

Implementation

FileMessageParams.withUrl(
  String fileUrl, {
  String? mimeType,
  int? size,
  String? name,
}) : uploadFile = FileInfo.fromUrl(
        name: name ?? 'image',
        mimeType: mimeType ?? 'image/jpeg',
        url: fileUrl,
        fileSize: size,
      );