getExtFormUrl static method

String getExtFormUrl(
  1. String fileurl
)

Implementation

static String getExtFormUrl(String fileurl) {
  String extension = fileurl.split('.').last;
  if (extension.contains('?')) {
    extension = extension.split('?')[0];
  }

  return extension;
}