pathToBrotherFileName static method
The Brother printers expect the file to be in upper case. This method will take a path extract the filename and make it upper case.
Implementation
static String pathToBrotherFileName(String filePath) {
String brotherFileName = filePath.split("/").last.toUpperCase().trim();
print ("Brother File Name: $brotherFileName");
return brotherFileName;
}