getFileExtension function Null safety

String getFileExtension(
  1. String fileName
)

Implementation

String getFileExtension(String fileName) {
  return "." + fileName.split('.').last;
}