getFileExtension method

String? getFileExtension(
  1. File file
)

This is used to get file extension

Implementation

String? getFileExtension(File file) {
  return p.extension(file.path, 2);
}