getFileName static method

String getFileName(
  1. String path
)

Logs a header title to the console. Retrieves the file name from the given path.

Implementation

// static void logHeader(String title) {
//   Logger.i(title);
// }

/// Retrieves the file name from the given [path].
static String getFileName(String path) {
  return path.split('/').last;
}