getUploadUrlFor method Null safety

String getUploadUrlFor(
  1. String name,
  2. [String? label]
)

Implementation

String getUploadUrlFor(String name, [String? label]) =>
    "${uploadUrl!.substring(0, uploadUrl!.indexOf('{'))}?name=$name${label != null ? ",$label" : ""}";