getVideoExtension static method

String getVideoExtension(
  1. String filePath
)

Implementation

static String getVideoExtension(String filePath) {
  List<String> data = filePath.split(".");
  return data[data.length - 1];
}